Volumetric lighting in progress
--HG-- rename : KREngine/KREngine/Shaders/volumetric_fog_inside.fsh => KREngine/KREngine/Shaders/volumetric_fog.fsh rename : KREngine/KREngine/Shaders/volumetric_fog_inside.vsh => KREngine/KREngine/Shaders/volumetric_fog.vsh extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40153
This commit is contained in:
@@ -31,6 +31,8 @@
|
||||
#define PIXEL_SHIFT_3 0.003
|
||||
#define PIXEL_SHIFT_4 0.004
|
||||
|
||||
#define ENABLE_VOLUMETRIC_LIGHTING 1
|
||||
|
||||
|
||||
varying mediump vec2 textureCoordinate;
|
||||
precision lowp float;
|
||||
@@ -42,6 +44,10 @@ uniform lowp sampler2D videoFrame;
|
||||
uniform lowp sampler2D renderFrame;
|
||||
uniform lowp sampler2D depthFrame;
|
||||
|
||||
#if ENABLE_VOLUMETRIC_LIGHTING
|
||||
uniform lowp sampler2D volumetricLightingFrame;
|
||||
#endif
|
||||
|
||||
void main()
|
||||
{
|
||||
|
||||
@@ -158,6 +164,10 @@ void main()
|
||||
*/
|
||||
|
||||
// ---- VIDEO_BG END ----
|
||||
|
||||
#if ENABLE_VOLUMETRIC_LIGHTING
|
||||
pixelColor += texture2D(volumetricLightingFrame, textureCoordinate);
|
||||
#endif
|
||||
|
||||
|
||||
// ---- VIGNETTE START ----
|
||||
|
||||
Reference in New Issue
Block a user