Updated Deferred shaders
Former-commit-id: 8f8f7529f952a65bfe1a34a06e3fdd5bd900f138
This commit is contained in:
parent
a7e0ec5984
commit
19a5a3e433
|
|
@ -78,8 +78,8 @@ void main()
|
||||||
Texture3: Depth texture
|
Texture3: Depth texture
|
||||||
*/
|
*/
|
||||||
RenderTarget0 = vec4(diffuseColor.rgb, 1.0);
|
RenderTarget0 = vec4(diffuseColor.rgb, 1.0);
|
||||||
RenderTarget1 = vec4(normal*0.5 + 0.5, 0.0);
|
RenderTarget1 = vec4(normal*0.5 + 0.5, gl_FragCoord.z);
|
||||||
RenderTarget2 = vec4(specularColor, MaterialShininess);
|
RenderTarget2 = vec4(specularColor, log2(MaterialShininess)/10.5); // http://www.guerrilla-games.com/publications/dr_kz2_rsx_dev07.pdf
|
||||||
#else // LIGHTING
|
#else // LIGHTING
|
||||||
RenderTarget0 = vec4(diffuseColor.rgb, 0.0);
|
RenderTarget0 = vec4(diffuseColor.rgb, 0.0);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue