Shader stuff [split]

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
User avatar
ZZYZX
 
 
Posts: 1384
Joined: Sun Oct 14, 2012 1:43 am
Location: Ukraine

Shader stuff [split]

Post by ZZYZX »

I dunno where do I post this shit. Have it here. http://www.mediafire.com/file/q14eebiei ... shader.pk3
An example of putting some value into a shader before some smart person (/me looks at dpjudas) implements proper uniform passing.
Can be used for funky appearance/disappearance animations and various other conditional things.
Can be used to disconnect procedural model texture animations (or fires, or whatever) from the global timer and give them a random seed/time offset.
Not sure if this is applicable to other color-related values, but should work with any double that gets passed to the shader.
Not sure if it will work for a model because I remember models don't work properly with translucency at all, and putting RenderStyle Normal probably resets alpha to 1.
Not tested, but this approach may as well work with alpha on linedefs. This really depends on whether the engine tries to act smart and reset alpha to 1.0 for one-sided lines.
Overall, it's 7am here, sleep time :D
User avatar
Enjay
 
 
Posts: 27677
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland

Re: Shader stuff [split]

Post by Enjay »

Nice effect.
User avatar
ZZYZX
 
 
Posts: 1384
Joined: Sun Oct 14, 2012 1:43 am
Location: Ukraine

Re: Shader stuff [split]

Post by ZZYZX »

Whyyyy. Why make a thread over 10kb of incomplete code. :roll:
User avatar
Accensus
Banned User
Posts: 2383
Joined: Thu Feb 11, 2016 9:59 am

Re: Shader stuff [split]

Post by Accensus »

So you can post the full thing in a separate thread. PostCount++ techniques. :P
(No, not really.)
User avatar
Nash
 
 
Posts: 17514
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia

Re: Shader stuff [split]

Post by Nash »

Where was the original discussion split from? I'm having trouble understanding the context...
User avatar
wildweasel
Posts: 21707
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): A lot of them
Graphics Processor: Not Listed

Re: Shader stuff [split]

Post by wildweasel »

Nash wrote:Where was the original discussion split from? I'm having trouble understanding the context...
It was originally in the How Do I thread, if I remember right, which doesn't honestly make a lot of sense to me.

Return to “Editing (Archive)”