mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-07-04 13:15:52 +00:00
CRandomStaticFilter: Fix UV interpolation
This commit is contained in:
parent
4c64369453
commit
0214370de8
@ -41,7 +41,8 @@ struct CRandomStaticFilterPipeline
|
|||||||
CRandomStaticFilterPipeline(hsh::vertex_buffer<CRandomStaticFilter::Vert> vbo,
|
CRandomStaticFilterPipeline(hsh::vertex_buffer<CRandomStaticFilter::Vert> vbo,
|
||||||
hsh::uniform_buffer<CRandomStaticFilter::Uniform> ubo, hsh::texture2d tex) {
|
hsh::uniform_buffer<CRandomStaticFilter::Uniform> ubo, hsh::texture2d tex) {
|
||||||
this->position = hsh::float4(vbo->m_pos, 0.f, 1.f);
|
this->position = hsh::float4(vbo->m_pos, 0.f, 1.f);
|
||||||
hsh::float4 color = tex.read<float>(Lookup8BPP(vbo->m_uv, ubo->randOff)) * ubo->color;
|
hsh::float2 uv HSH_VAR_STAGE(fragment) = vbo->m_uv;
|
||||||
|
hsh::float4 color = tex.read<float>(Lookup8BPP(uv, ubo->randOff)) * ubo->color;
|
||||||
if constexpr (CookieCutter) {
|
if constexpr (CookieCutter) {
|
||||||
if (color.w < ubo->discardThres) {
|
if (color.w < ubo->discardThres) {
|
||||||
hsh::discard();
|
hsh::discard();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user