2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 21:07:42 +00:00

Implement CHUDBillboardEffect, bug fixes

This commit is contained in:
Jack Andersen
2018-11-03 15:08:44 -10:00
parent d140f35886
commit 4c306e7e40
12 changed files with 129 additions and 49 deletions

View File

@@ -261,9 +261,6 @@ fragment float4 fmain(VertToFrag vtf [[ stage_in ]],
#instattribute uv4 2
#instattribute uv4 3
#instattribute uv4 4
#instattribute uv4 5
#instattribute uv4 6
#instattribute uv4 7
#srcfac srcalpha
#dstfac invsrcalpha
#depthtest none
@@ -320,6 +317,7 @@ void main()
vec4 sceneTexel = texture(sceneMap, mix(vtf.uvScene.xy, vtf.uvScene.zw, tindTexel));
vec4 texrTexel = texture(texrMap, vtf.uvTexr);
colorOut = vtf.color * vec4(sceneTexel.rgb, 1.0) + texrTexel;
colorOut.a = vtf.color.a * texrTexel.a;
}
#vertex hlsl