First
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user