JellyFish: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
;'''<code>Jellyfish</code>'''
{{obsolete|type=shader}}
This shader usually results in wireframe and therefore is unreliable and doesn't work. There is a glitch where this shader splits the player's view into four rectangular quadrants, and multiplies one colour per quadrant on the model. The "gradient" overlay on the model is locked to the player view; it doesn't pan, but it does resize as the view nears the model. The "$gradienttexture" seems to have no effect. Models with this shader are fullbright.  
'''<code>Jellyfish</code>'''
This shader usually results in wireframe and therefore is unreliable and doesn't work. There is a glitch where this shader splits the player's view into four rectangular quadrants, and multiplies one colour per quadrant on the model. The "gradient" overlay on the model is locked to the player view; it doesn't pan, but it does resize as the view nears the model. The <code>$gradienttexture</code> seems to have no effect. Models with this shader are fullbright.  
{{Note|This entire page was written with information from testing the shader in Episode 2 ONLY.}}
{{Note|This entire page was written with information from testing the shader in Episode 2 ONLY.}}
The shader is fixed in {{gmod}}


[[{{ns:6}}:JellyFish Inner workings.png|thumb|right|300px|How the JellyFish shader works on models in Episode 2.]]
[[{{ns:6}}:JellyFish Inner workings.png|thumb|right|300px|How the JellyFish shader works on models in Episode 2.]]


== Shader specific parameters ==
== Shader specific parameters ==
; <code>$gradienttexture</code>
{{MatParamDef|$basetexture|texture|}}
: Does nothing. The Half-Life 2 Beta code describes it as "1D texture for silhouette glowy bits".
{{MatParamDef|$gradienttexture|texture|The Half-Life 2 Beta code describes it as "1D texture for silhouette glowy bits".}}
 
{{MatParamDef|$envmap|texture|If unset, will be the cubemap?}}
 
{{MatParamDef|$envmaptint|vector3|Default is [1 1 1]}}
 
{{MatParamDef|$pulserate|float|Default is 0}}
:;Apparently this shader has no supported effects, besides <code>$basetexture</code>, of course. But that really isn't an effect, now is it?


== Trivia ==
== Trivia ==

Latest revision as of 11:45, 23 August 2025

Obsolete-notext.png
This shader is obsolete. Its use is discouraged. It may only exist/function in older engine branches.

Jellyfish This shader usually results in wireframe and therefore is unreliable and doesn't work. There is a glitch where this shader splits the player's view into four rectangular quadrants, and multiplies one colour per quadrant on the model. The "gradient" overlay on the model is locked to the player view; it doesn't pan, but it does resize as the view nears the model. The $gradienttexture seems to have no effect. Models with this shader are fullbright.

Note.pngNote:This entire page was written with information from testing the shader in Episode 2 ONLY.

The shader is fixed in Garry's Mod

How the JellyFish shader works on models in Episode 2.

Shader specific parameters

Todo: This material shader parameter has not been described.
The Half-Life 2 Beta code describes it as "1D texture for silhouette glowy bits".
If unset, will be the cubemap?
Default is [1 1 1]
Default is 0

Trivia

This is and was used for the Hydra in the Half-Life 2 Beta and a number of mods.