This repository was archived by the owner on Aug 21, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
packages/engine/src/avatar/components Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,6 @@ export const AvatarDissolveComponent = defineComponent({
48
48
} ,
49
49
50
50
createDissolveMaterial ( object : Mesh < any , MeshBasicMaterial & ShaderMaterial > ) : any {
51
- const hasUV = object . geometry . hasAttribute ( 'uv' )
52
51
const isShaderMaterial = object . material . type == 'ShaderMaterial'
53
52
const material = object . material
54
53
const hasTexture = ! ! material . map
@@ -101,13 +100,6 @@ export const AvatarDissolveComponent = defineComponent({
101
100
102
101
uniforms = UniformsUtils . merge ( [ UniformsLib [ 'lights' ] , uniforms ] )
103
102
104
- const vertexNonUVShader = `
105
- #include <fog_vertex>
106
- vec2 clipSpace = gl_Position.xy / gl_Position.w;
107
- vUv3 = clipSpace * 0.5 + 0.5;
108
- vPosition = position.y;
109
- `
110
-
111
103
const vertexUVShader = `
112
104
#include <fog_vertex>
113
105
vUv3 = uv;
@@ -153,7 +145,7 @@ export const AvatarDissolveComponent = defineComponent({
153
145
`
154
146
155
147
vertexShader = vertexShader . replace ( '#include <clipping_planes_pars_vertex>' , vertexHeaderShader )
156
- vertexShader = vertexShader . replace ( '#include <fog_vertex>' , hasUV ? vertexUVShader : vertexNonUVShader )
148
+ vertexShader = vertexShader . replace ( '#include <fog_vertex>' , vertexUVShader )
157
149
fragmentShader = fragmentShader . replace ( '#include <clipping_planes_pars_fragment>' , fragmentHeaderShader )
158
150
fragmentShader = fragmentShader . replace ( '#include <output_fragment>' , fragmentTextureShader )
159
151
You can’t perform that action at this time.
0 commit comments