2021-03-10 12:23:55 +01:00
|
|
|
|
|
|
|
struct DecalData {
|
2021-08-18 17:18:50 +02:00
|
|
|
highp mat4 xform; //to decal transform
|
|
|
|
highp vec3 inv_extents;
|
|
|
|
mediump float albedo_mix;
|
|
|
|
highp vec4 albedo_rect;
|
|
|
|
highp vec4 normal_rect;
|
|
|
|
highp vec4 orm_rect;
|
|
|
|
highp vec4 emission_rect;
|
|
|
|
highp vec4 modulate;
|
|
|
|
mediump float emission_energy;
|
2021-03-10 12:23:55 +01:00
|
|
|
uint mask;
|
2021-08-18 17:18:50 +02:00
|
|
|
mediump float upper_fade;
|
|
|
|
mediump float lower_fade;
|
|
|
|
mediump mat3x4 normal_xform;
|
|
|
|
mediump vec3 normal;
|
|
|
|
mediump float normal_fade;
|
2021-03-10 12:23:55 +01:00
|
|
|
};
|