Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove unused code from cube_uv_reflection_fragment. #8251

Merged
merged 1 commit into from
Mar 1, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions src/renderers/shaders/ShaderChunk/cube_uv_reflection_fragment.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -92,23 +92,6 @@ vec2 getCubeUV(vec3 direction, float roughnessLevel, float mipLevel, float textu
return uv;
}

vec3 convertRGBEToRGB(vec4 rgbe) {
float d = pow(2.0, rgbe.w*256.0 - 128.0);
return vec3(rgbe) * d;
}

vec3 tonemap(vec3 RGB) {
float LogAvgLum = 0.08;//0.08
float key = 1.0;
float Ywhite = 1e3;
Ywhite *= Ywhite;
float sat = 1.0;
float Ylum = dot(RGB ,vec3(0.2126, 0.7152, 0.0722));
float Y = key/LogAvgLum * Ylum ;
float Yd = Y * ( 1.0 + Y/Ywhite)/( 1.0 + Y) ;
return Yd * pow(RGB/Ylum ,vec3(sat, sat, sat));
}

vec4 textureCubeUV(vec3 reflectedDirection, float roughness, float textureSize) {
float maxLods = log2(textureSize*0.25) - 3.0;
float roughnessVal = roughness*maxLods;
Expand Down