Skip to content

Commit cf75147

Browse files
authored
Merge pull request #685 from martyvona/fix-ao-example
fix AO example
2 parents c515b92 + 7854727 commit cf75147

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/materials/surface/AmbientOcclusionMaterial.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { TangentSpaceNormalMap, Vector2 } from 'three';
22
import { MaterialBase } from '../MaterialBase.js';
33
import { MeshBVHUniformStruct, BVHShaderGLSL } from 'three-mesh-bvh';
4+
import { MATERIAL_PIXELS } from '../../uniforms/MaterialsTexture.js';
45

56
import * as StructsGLSL from '../../shader/structs/index.js';
67
import * as SamplingGLSL from '../../shader/sampling/index.js';
@@ -43,6 +44,7 @@ export class AmbientOcclusionMaterial extends MaterialBase {
4344

4445
defines: {
4546
SAMPLES: 10,
47+
MATERIAL_PIXELS: MATERIAL_PIXELS,
4648
},
4749

4850
uniforms: {

0 commit comments

Comments
 (0)