X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=shaderlib%2Fcooktorrance.glsl;h=5e933d5a55239d7db0fb18a35b068c2b768975f2;hb=7c797f8445ab02381e358472755e94e5c5125252;hp=8a69d473e83935adf8d8d866b2beab07518e22ea;hpb=7a5d84b06d0217c5edad5d9f4ef51404de0cb911;p=libs%2Fgl.git diff --git a/shaderlib/cooktorrance.glsl b/shaderlib/cooktorrance.glsl index 8a69d473..5e933d5a 100644 --- a/shaderlib/cooktorrance.glsl +++ b/shaderlib/cooktorrance.glsl @@ -153,7 +153,7 @@ vec3 cooktorrance_environment(vec3 normal, vec3 look, vec3 base_color, float met return (k_diff*base_color+k_spec)*ambient_color.rgb; } -vec3 cooktorrance_lighting(vec3 normal, vec3 look, vec3 base_color, float metalness, float roughness) +vec3 cooktorrance_lighting(vec3 normal, vec3 look, vec3 base_color, float metalness, float roughness, float occlusion) { vec3 color = vec3(0.0); for(int i=0; i