2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-14 20:06:11 +00:00

Use frag_position in FOG_SHADER

This commit is contained in:
2020-10-21 01:33:33 -04:00
parent 73c7755e4c
commit 5c3267c69d
2 changed files with 47 additions and 44 deletions

View File

@@ -25,8 +25,6 @@ struct CEnvFxShadersPipeline
hsh::float4 color = vbo->color * envFxUniBuf->moduColor * flakeTexel * envTexel;
this->position = envFxUniBuf->proj * (envFxUniBuf->mv * posIn);
FOG_SHADER_UNIFORM(fogUniBuf)
// FIXME: hsh binds fog uniform to fragment stage
// only because of m_color reference in here. can/should we avoid that?
FOG_OUT_UNIFORM(this->color_out[0], fogUniBuf, color)
}
};