diff --git a/src/components/model-viewer/shaderInfo.ts b/src/components/model-viewer/shaderInfo.ts index 77a6021..5c5d3eb 100644 --- a/src/components/model-viewer/shaderInfo.ts +++ b/src/components/model-viewer/shaderInfo.ts @@ -17,6 +17,11 @@ export type ShaderProps = { }; // Properties from Shaders found in MC +// For "lighting", check if the vertex-shader samples the lightmap (i.e. via minecraft_sample_lightmap) +// vertexColor should be true if the shader uses vertex-specific color (and i.e. maintains it even after sampling +// the lightmap) +// "textured" indicates that the fragment shader samples the texture and uses its color +// "alphaTest" indicates the alpha value under which the fragment is discarded const shaderInfos: Record = { rendertype_solid: { lighting: "lightmap", @@ -42,6 +47,12 @@ const shaderInfos: Record = { vertexColor: true, textured: true, }, + rendertype_tripwire: { + lighting: "lightmap", + alphaTest: 0.1, + vertexColor: true, + textured: true, + }, rendertype_entity_cutout: { lighting: "diffuse", alphaTest: 0.1,