Skip to content

Commit

Permalink
fix: allow type of MeshRefractionMaterial to be inferred better
Browse files Browse the repository at this point in the history
  • Loading branch information
xinaesthete committed Aug 9, 2023
1 parent a971aaf commit af564ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/materials/MeshRefractionMaterial.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ import { MeshBVHUniformStruct, shaderStructs, shaderIntersectFunction } from 'th

export const MeshRefractionMaterial = shaderMaterial(
{
envMap: null,
envMap: null as THREE.CubeTexture | THREE.Texture | null,
bounces: 3,
ior: 2.4,
correctMips: true,
aberrationStrength: 0.01,
fresnel: 0,
bvh: new MeshBVHUniformStruct(),
color: new THREE.Color('white'),
resolution: new THREE.Vector2(),
resolution: new THREE.Vector2() as THREE.Vector2 | [number, number],
viewMatrixInverse: new THREE.Matrix4(),
projectionMatrixInverse: new THREE.Matrix4(),
},
Expand Down

0 comments on commit af564ee

Please sign in to comment.