We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c515b92 + 7854727 commit cf75147Copy full SHA for cf75147
src/materials/surface/AmbientOcclusionMaterial.js
@@ -1,6 +1,7 @@
1
import { TangentSpaceNormalMap, Vector2 } from 'three';
2
import { MaterialBase } from '../MaterialBase.js';
3
import { MeshBVHUniformStruct, BVHShaderGLSL } from 'three-mesh-bvh';
4
+import { MATERIAL_PIXELS } from '../../uniforms/MaterialsTexture.js';
5
6
import * as StructsGLSL from '../../shader/structs/index.js';
7
import * as SamplingGLSL from '../../shader/sampling/index.js';
@@ -43,6 +44,7 @@ export class AmbientOcclusionMaterial extends MaterialBase {
43
44
45
defines: {
46
SAMPLES: 10,
47
+ MATERIAL_PIXELS: MATERIAL_PIXELS,
48
},
49
50
uniforms: {
0 commit comments