mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-23 10:50:01 +00:00
Data: add graphics mod editor light visualization pipeline action for visualizing the lighting in a scene
This commit is contained in:
parent
bad0f21fb9
commit
4bdad757c6
4 changed files with 30 additions and 0 deletions
|
@ -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 = dolphin_calculate_lighting_chn0(frag_input.color_0, vec4(frag_input.position, 1), frag_input.normal);
|
||||
frag_output.main = ivec4(output_color * 255.0);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"next_material_asset":"",
|
||||
"pixel_properties":[],
|
||||
"pixel_textures":[],
|
||||
"render_targets":[],
|
||||
"shader_asset": "simple_light_visualization_shader",
|
||||
"vertex_properties":[]
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"pixel_properties":[],
|
||||
"pixel_output_targets":[],
|
||||
"pixel_samplers":[],
|
||||
"vertex_properties":[]
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
void vertex(in DolphinVertexInput vertex_input, out DolphinVertexOutput vertex_output)
|
||||
{
|
||||
dolphin_emulated_vertex(vertex_input, vertex_output);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue