PaintBlob
Jump to navigation
Jump to search
Note: $nocull is not needed for this shader to function properly, however, can be used to visualize the $interior effects on the backface.
Bug:Non-functional in
[todo tested in ?]
This article or section is a stub. You can help by expanding it.
PaintBlob is a Pixel shader available in all
Source games since
Portal 2. Originally intended for Gel blobs, it can also be used to create realistic hollow ice surfaces.
Todo: Report anomalies and bugs
Supported Parameters
Textures & Masks
- $basetexture <texture>
- Diffuse texture.
- $normalmap <texture>
- Normal map.
- $lightwarptexture <texture>
- 1D ramp texture for tinting scalar diffuse term.
- $backsurface <boolean>
- Specify that this is the back surface.
Bug:Results in a pixel shader crash if true. [todo tested in ?]
- $specmasktexture <texture>
- Mask texture for specular reflection.
- $fresnelwarptexture <texture>
- 1D ramp texture for controlling fresnel falloff
{{MatParamDef|$opacitytexture|texture|text=Typically, a grayscale texture that defines the opaque and translucent parts of the texture.
Outer Layer Parameters
- $diffusescale <float>
- Scales the output color.
Tip: Can be used to brighten the textures.
- $phongexponent and $phonexponent2 <float>
- Specular exponent values.
- $phongboost and $phongboost2 <float>
- Specular boost values.
- $rimlightexponent <float>
- Rim light exponent.
- $rimlightboost <float>
- Rim light boost.
- $basecolortint <vector3>
- Base texture tint. Todo: Figure out why this doesn't work.
Interior Volume Parameters
- $interiorfogstrength <float>
- Fog strength (scales with thickness of the interior volume).
- $interiorbackgroundboost <float>
- Boosts the brightness of bright background pixels.
- $interiorambientscale <float>
- Scales the ambient light in the interior volume.
- $interiorbacklightscale <float>
- Scales backlighting in the interior volume.
- $interiorrefractstrength <float>
- Strength of bumped refract of the background seen through the interior.
Additional Parameters
- $bumpstrength <float>
- Bump map strength.
- $fresnelbumpstrength <float>
- Bump map strength for the fresnel term.
- $translucentfresnelminmaxexp <vector3>
- Fresnel range parameters for the opacity texture.
- $uvprojoffset <vector3>
- Center for UV projection.
- $contactshadows <boolean>
- Darkens the shading of the material in areas where it is in contact with a surface.
- $bumpframe <integer>
- Bump frame.
- $alphatest <boolean>
Tip: Has no effect on the alpha, but effects shadow casting
- $translucent <boolean>
Tip: Has no effect on the alpha, but effects shadow casting