sdfsdfs
This commit is contained in:
52
node_modules/pixi.js/lib/rendering/high-shader/shader-bits/globalUniformsBit.mjs
generated
vendored
Normal file
52
node_modules/pixi.js/lib/rendering/high-shader/shader-bits/globalUniformsBit.mjs
generated
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
"use strict";
|
||||
const globalUniformsBit = {
|
||||
name: "global-uniforms-bit",
|
||||
vertex: {
|
||||
header: (
|
||||
/* wgsl */
|
||||
`
|
||||
struct GlobalUniforms {
|
||||
uProjectionMatrix:mat3x3<f32>,
|
||||
uWorldTransformMatrix:mat3x3<f32>,
|
||||
uWorldColorAlpha: vec4<f32>,
|
||||
uResolution: vec2<f32>,
|
||||
}
|
||||
|
||||
@group(0) @binding(0) var<uniform> globalUniforms : GlobalUniforms;
|
||||
`
|
||||
)
|
||||
}
|
||||
};
|
||||
const globalUniformsUBOBitGl = {
|
||||
name: "global-uniforms-ubo-bit",
|
||||
vertex: {
|
||||
header: (
|
||||
/* glsl */
|
||||
`
|
||||
uniform globalUniforms {
|
||||
mat3 uProjectionMatrix;
|
||||
mat3 uWorldTransformMatrix;
|
||||
vec4 uWorldColorAlpha;
|
||||
vec2 uResolution;
|
||||
};
|
||||
`
|
||||
)
|
||||
}
|
||||
};
|
||||
const globalUniformsBitGl = {
|
||||
name: "global-uniforms-bit",
|
||||
vertex: {
|
||||
header: (
|
||||
/* glsl */
|
||||
`
|
||||
uniform mat3 uProjectionMatrix;
|
||||
uniform mat3 uWorldTransformMatrix;
|
||||
uniform vec4 uWorldColorAlpha;
|
||||
uniform vec2 uResolution;
|
||||
`
|
||||
)
|
||||
}
|
||||
};
|
||||
|
||||
export { globalUniformsBit, globalUniformsBitGl, globalUniformsUBOBitGl };
|
||||
//# sourceMappingURL=globalUniformsBit.mjs.map
|
Reference in New Issue
Block a user