Data: add graphics mod editor normal visualization pipeline action for visualizing the normals in a scene

This commit is contained in:
iwubcode 2025-01-27 19:22:33 -06:00
commit 7702b103d3
4 changed files with 30 additions and 0 deletions

View file

@ -0,0 +1,12 @@
void fragment(in DolphinFragmentInput frag_input, out DolphinFragmentOutput frag_output)
{
if (frag_input.normal.xyz == vec3(0, 0, 0))
{
dolphin_emulated_fragment(frag_input, frag_output);
}
else
{
vec4 output_color = vec4(frag_input.normal.xyz * 0.5 + 0.5, 1);
frag_output.main = ivec4(output_color * 255.0);
}
}

View file

@ -0,0 +1,8 @@
{
"next_material_asset":"",
"pixel_properties":[],
"pixel_textures":[],
"render_targets":[],
"shader_asset": "normal_visualization_shader",
"vertex_properties":[]
}

View file

@ -0,0 +1,6 @@
{
"pixel_properties":[],
"pixel_output_targets":[],
"pixel_samplers":[],
"vertex_properties":[]
}

View file

@ -0,0 +1,4 @@
void vertex(in DolphinVertexInput vertex_input, out DolphinVertexOutput vertex_output)
{
dolphin_emulated_vertex(vertex_input, vertex_output);
}