Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by Zheka. 06/20/24 14:26
Lapsa's very own thread
by rki. 06/19/24 11:27
A simple game ...
by VoroneTZ. 06/18/24 10:50
Face player all the time ...
by bbn1982. 06/18/24 10:25
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, TipmyPip), 844 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mino, squik, AemStones, LucasJoshua, Baklazhan
19061 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Shaders in C-Script??? #77427
06/12/06 21:42
06/12/06 21:42
Joined: Feb 2006
Posts: 371
New England
Rad_Daddy Offline OP
Senior Member
Rad_Daddy  Offline OP
Senior Member

Joined: Feb 2006
Posts: 371
New England
Are shaders possible written entirely in c-script. If so, could someone point me in the direction of an example/tutorial. Dosent really matter what kind of affect, just would like to see it. Thank you.


"Read not to contradict and confute, nor to find talk and discourse, but to weigh and consider." Sir Francis Bacon www.deckscapedesign.com
Re: Shaders in C-Script??? [Re: Rad_Daddy] #77428
06/13/06 01:11
06/13/06 01:11
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
No...


You have to write them in a shader language such as HLSL, through the effect of a material...


ex:
Code:

material mat_this
{
ambient_red = 128;
ambient_green = 128;
ambient_blue = 128;
albedo = 100;
power = 100;
alpha = 100;
effect = "
...
";
}

ACTION MyPlayer
{
my.material = mat_this;
...
}



Sorry I didn't write a shader. I only know how they work, not the language...


xXxGuitar511
- Programmer
Re: Shaders in C-Script??? [Re: xXxGuitar511] #77429
06/13/06 01:28
06/13/06 01:28
Joined: Feb 2006
Posts: 371
New England
Rad_Daddy Offline OP
Senior Member
Rad_Daddy  Offline OP
Senior Member

Joined: Feb 2006
Posts: 371
New England
yes, i understand how shaders work as well, or at least how to assign them and good stuff like that. I havent gotten very heavy into HLSL because the quality of my game is not such that I feel I need to waste my time using shaders. However, this is a learning process. I expect my next to be that much better, and hope to use shaders in the near future. Thank you for the answer, xXxguitar.


"Read not to contradict and confute, nor to find talk and discourse, but to weigh and consider." Sir Francis Bacon www.deckscapedesign.com

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1