Gamestudio Links
Zorro Links
Newest Posts
contractUpdate() is filtering if >2 rows
by mistery. 11/09/26 12:06
New Zorro version 3.15
by jcl. 11/09/26 09:24
Removing outliers from files
by jcl. 11/04/26 10:30
[MED] Import from FBX (2010) missing!!!
by rayp. 11/03/26 14:33
What are you working on?
by rayp. 11/02/26 13:57
No connection to MT4
by JeyKey II. 10/29/26 09:34
Zorro plugin for Hyperliquid.xyz
by opm. 10/28/26 13:50
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (EW_bytes, mistery), 15,758 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
dabolong, MaliceTheMaker, Haitao_Ren, JimSimons, julienp
19249 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