add tonemapping shaders
This commit is contained in:
6
shader/ToneMap/Linear.glsl
Normal file
6
shader/ToneMap/Linear.glsl
Normal file
@@ -0,0 +1,6 @@
|
||||
vec3 ToneMapping(vec3 color)
|
||||
{
|
||||
color = clamp(u_Exposure * color, 0., 1.);
|
||||
|
||||
return linearTosRGB(color);
|
||||
}
|
Reference in New Issue
Block a user