paint: fix displacement strength option

This commit is contained in:
luboslenco
2026-04-18 21:02:33 +02:00
parent beba701aba
commit 1bc79c5bad
4 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -289,9 +289,9 @@ void parser_material_finalize(node_shader_context_t *con) {
node_shader_write_attrib_vert(kong, "output.wnormal = constants.N * float3(input.nor.xy, input.pos.w);");
node_shader_write_attrib_frag(kong, "var n: float3 = normalize(input.wnormal);");
}
else if (kong->vert_n) {
if (kong->vert_n) {
node_shader_add_constant(kong, "N: float3x3", "_normal_matrix");
node_shader_write_attrib_vert(kong, "var wnormal: float3 = normalize(constants.N * float3(input.nor.xy, input.pos.w));");
node_shader_write_attrib_vert(kong, "var vert_wnormal: float3 = normalize(constants.N * float3(input.nor.xy, input.pos.w));");
}
if (kong->frag_nattr) {
node_shader_add_out(kong, "nattr: float3");