Skip to content

gamma correction 1/2.2 (linear -> sRGB) is missing if apply_lighting = false #2

@kabouzeid

Description

@kabouzeid

let color_tonemapped_gamma = pow(color_tonemapped.xyz, vec3<f32>(1.0/2.2)); //gamma correction
var color_tonemapped_gamma_rgba = vec4<f32>(color_tonemapped_gamma, color_linear.a);
// }
//just return directly the albedo
if !(GlobalBinds::params.apply_lighting >0u){
color_tonemapped_gamma_rgba = albedo;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions