properties:
texture: { value: white }
alphaThreshold: { value: 0.5 }
u_radius: { value: 0.5 }
u_pointX: { value: 0.5 }
u_pointY: { value: 0.5 }
u_point: {
type: vec2,
value: [1.0, 1.0]
}
fs 里面如下
uniform Params{
float u_radius;
float u_pointX;
float u_pointY;
vec2 u_point;
};
float的可以,vec2的提示fs: error EFX2205: UBO ‘Params’ introduces implicit padding: 4 bytes before ‘u_point’, consider re-ordering the members