Commit 37c0f29b authored by Florian Oetke's avatar Florian Oetke
Browse files

tweaked emmisive shader

parent b80df557
Pipeline #2333 passed with stage
in 4 minutes and 4 seconds
......@@ -48,12 +48,14 @@ void main() {
roughness = mix(0.01, 0.99, roughness*roughness);
albedo.rgb *= model_uniforms.material_properties.rgb;
float emmissive_power = texture(mat_data2_sampler, tex_coords).r;
albedo.rgb *= mix(vec3(1), model_uniforms.material_properties.rgb, step(0.1, emmissive_power));
depth_out = vec4(-view_pos.z / global_uniforms.proj_planes.y, 0,0,1);
albedo_mat_id = vec4(albedo.rgb, 1.0);
mat_data_out = vec4(encode_normal(N), 1, 0);
color_out = vec4(albedo.rgb * texture(mat_data2_sampler, tex_coords).r * model_uniforms.material_properties.a, 1.0);
color_out = vec4(albedo.rgb * emmissive_power * model_uniforms.material_properties.a, 1.0);
color_diffuse_out = color_out;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment