This commit is contained in:
jeanlemotan
2024-07-03 13:14:02 +02:00
commit 1b674c3e64
55 changed files with 96031 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
material {
name : ImGui,
parameters : [
{
type : sampler2d,
name : albedo
}
],
requires : [
uv0,
color
],
shadingModel : unlit,
culling : none,
depthCulling: false,
blending : transparent
}
fragment {
void material(inout MaterialInputs material)
{
prepareMaterial(material);
vec2 uv = getUV0();
uv.y = 1.0 - uv.y;
vec4 albedo = texture(materialParams_albedo, uv);
material.baseColor = getColor() * albedo;
material.baseColor.rgb *= material.baseColor.a;
}
}