… | |
… | |
83 | shader::shader_builder::start (); |
83 | shader::shader_builder::start (); |
84 | vsh (ctx); |
84 | vsh (ctx); |
85 | |
85 | |
86 | if (ctx.pass_data->l) |
86 | if (ctx.pass_data->l) |
87 | ctx.pass_data->l->vsh (); |
87 | ctx.pass_data->l->vsh (); |
|
|
88 | |
|
|
89 | { |
|
|
90 | using namespace shader::compile; |
|
|
91 | |
|
|
92 | z (vout.position) = log2 (z (vout.position) / w (vout.position)) * w (vout.position); |
|
|
93 | } |
88 | |
94 | |
89 | po->vsh->compile (shader::shader_builder::stop ()); |
95 | po->vsh->compile (shader::shader_builder::stop ()); |
90 | |
96 | |
91 | shader::shader_builder::start (); |
97 | shader::shader_builder::start (); |
92 | shader::compile::fout.frag_color = shader::compile::float4 (1., 1., 0., 1.); |
98 | shader::compile::fout.frag_color = shader::compile::float4 (1., 1., 0., 1.); |