Gamestudio Links
Zorro Links
Newest Posts
WFO Training with parallel cores Zorro64
by Martin_HH. 02/24/26 19:51
Zorro version 3.0 prerelease!
by TipmyPip. 02/24/26 17:09
ZorroGPT
by TipmyPip. 02/23/26 21:52
Camera always moves upwards?
by clonman. 02/21/26 09:29
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
5 registered members (Martin_HH, TipmyPip, AndrewAMD, Grant, USER0328), 5,287 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
alx, ApprenticeInMuc, PatrickH90, USER0328, Sfrdragon
19199 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 | 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