ParallaxTest: Difference between revisions
Jump to navigation
Jump to search
Note:There's a workaround for this bug, as lightmaps can be faked with Modulate shader
NvC DmN CH (talk | contribs) (faking lightmaps workaround) |
NvC DmN CH (talk | contribs) (gif preview of the faking lightmaps on this shader in action) |
||
Line 2: | Line 2: | ||
Alternative to the disabled [[$parallaxmap]] shader parameter. | Alternative to the disabled [[$parallaxmap]] shader parameter. | ||
Accepts only a [[$basetexture]], of which the alpha channel is used as the heightmap. | Accepts only a [[$basetexture]], of which the alpha channel is used as the heightmap. | ||
[[File:Ezgif.com-gif-maker(1).gif|thumb|450px|Successful implementation, by placing a surface using [[Modulate]] shader, to fake lightmaps ontop of the otherwise fullbright parallax mapped texture. Click to see animated preview.]] | |||
{{bug|The material will always be drawn [[Fullbright|unlit]].}} | {{bug|The material will always be drawn [[Fullbright|unlit]].}} | ||
{{note|There's a workaround for this bug, as | {{note|There's a workaround for this bug, as lightmaps can be faked with [[Modulate]] shader}} | ||
Revision as of 11:04, 15 May 2019
ParallaxTest
is an unfinished shader since (although not available in SDK 2013) which draws parallax mapping on an albedo.
Alternative to the disabled $parallaxmap shader parameter.
Accepts only a $basetexture, of which the alpha channel is used as the heightmap.

Successful implementation, by placing a surface using Modulate shader, to fake lightmaps ontop of the otherwise fullbright parallax mapped texture. Click to see animated preview.

Todo: Document/test more of this shader!