Skip to content

Commit

Permalink
[FIX] Declare standard material maps as nullable (#4165)
Browse files Browse the repository at this point in the history
  • Loading branch information
willeastcott authored Apr 2, 2022
1 parent 992f436 commit fc9dcf4
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions types-fixup.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ const standardMaterialProps = [
['ambient', 'Color'],
['ambientTint', 'boolean'],
['anisotropy', 'number'],
['aoMap', 'Texture'],
['aoMap', 'Texture|null'],
['aoMapChannel', 'string'],
['aoMapOffset', 'Vec2'],
['aoMapRotation', 'number'],
Expand All @@ -320,7 +320,7 @@ const standardMaterialProps = [
['bumpiness', 'number'],
['clearCoat', 'number'],
['clearCoatBumpiness', 'number'],
['clearCoatGlossMap', 'Texture'],
['clearCoatGlossMap', 'Texture|null'],
['clearCoatGlossMapChannel', 'string'],
['clearCoatGlossMapOffset', 'Vec2'],
['clearCoatGlossMapRotation', 'number'],
Expand All @@ -329,32 +329,32 @@ const standardMaterialProps = [
['clearCoatGlossVertexColor', 'boolean'],
['clearCoatGlossVertexColorChannel', 'string'],
['clearCoatGlossiness', 'number'],
['clearCoatMap', 'Texture'],
['clearCoatMap', 'Texture|null'],
['clearCoatMapChannel', 'string'],
['clearCoatMapOffset', 'Vec2'],
['clearCoatMapRotation', 'number'],
['clearCoatMapTiling', 'Vec2'],
['clearCoatMapUv', 'number'],
['clearCoatNormalMap', 'Texture'],
['clearCoatNormalMap', 'Texture|null'],
['clearCoatNormalMapOffset', 'Vec2'],
['clearCoatNormalMapRotation', 'number'],
['clearCoatNormalMapTiling', 'Vec2'],
['clearCoatNormalMapUv', 'number'],
['clearCoatVertexColor', 'boolean'],
['clearCoatVertexColorChannel', 'string'],
['conserveEnergy', 'boolean'],
['cubeMap', 'Texture'],
['cubeMap', 'Texture|null'],
['cubeMapProjection', 'number'],
['cubeMapProjectionBox', 'BoundingBox'],
['diffuse', 'Color'],
['diffuseDetailMap', 'Texture'],
['diffuseDetailMap', 'Texture|null'],
['diffuseDetailMapChannel', 'string'],
['diffuseDetailMapOffset', 'Vec2'],
['diffuseDetailMapRotation', 'number'],
['diffuseDetailMapTiling', 'Vec2'],
['diffuseDetailMapUv', 'number'],
['diffuseDetailMode', 'string'],
['diffuseMap', 'Texture'],
['diffuseMap', 'Texture|null'],
['diffuseMapChannel', 'string'],
['diffuseMapOffset', 'Vec2'],
['diffuseMapRotation', 'number'],
Expand All @@ -365,7 +365,7 @@ const standardMaterialProps = [
['diffuseVertexColorChannel', 'string'],
['emissive', 'Color'],
['emissiveIntensity', 'number'],
['emissiveMap', 'Texture'],
['emissiveMap', 'Texture|null'],
['emissiveMapChannel', 'string'],
['emissiveMapOffset', 'Vec2'],
['emissiveMapRotation', 'number'],
Expand All @@ -376,22 +376,22 @@ const standardMaterialProps = [
['emissiveVertexColorChannel', 'string'],
['enableGGXSpecular', 'boolean'],
['fresnelModel', 'number'],
['glossMap', 'Texture'],
['glossMap', 'Texture|null'],
['glossMapChannel', 'string'],
['glossMapOffset', 'Vec2'],
['glossMapRotation', 'number'],
['glossMapTiling', 'Vec2'],
['glossMapUv', 'number'],
['glossVertexColor', 'boolean'],
['glossVertexColorChannel', 'string'],
['heightMap', 'Texture'],
['heightMap', 'Texture|null'],
['heightMapChannel', 'string'],
['heightMapFactor', 'number'],
['heightMapOffset', 'Vec2'],
['heightMapRotation', 'number'],
['heightMapTiling', 'Vec2'],
['heightMapUv', 'number'],
['lightMap', 'Texture'],
['lightMap', 'Texture|null'],
['lightMapChannel', 'string'],
['lightMapOffset', 'Vec2'],
['lightMapRotation', 'number'],
Expand All @@ -400,21 +400,21 @@ const standardMaterialProps = [
['lightVertexColor', 'boolean'],
['lightVertexColorChannel', 'string'],
['metalness', 'number'],
['metalnessMap', 'Texture'],
['metalnessMap', 'Texture|null'],
['metalnessMapChannel', 'string'],
['metalnessMapOffset', 'Vec2'],
['metalnessMapRotation', 'number'],
['metalnessMapTiling', 'Vec2'],
['metalnessMapUv', 'number'],
['metalnessVertexColor', 'boolean'],
['metalnessVertexColorChannel', 'string'],
['normalDetailMap', 'Texture'],
['normalDetailMap', 'Texture|null'],
['normalDetailMapBumpiness', 'number'],
['normalDetailMapOffset', 'Vec2'],
['normalDetailMapRotation', 'number'],
['normalDetailMapTiling', 'Vec2'],
['normalDetailMapUv', 'number'],
['normalMap', 'Texture'],
['normalMap', 'Texture|null'],
['normalMapOffset', 'Vec2'],
['normalMapRotation', 'number'],
['normalMapTiling', 'Vec2'],
Expand All @@ -425,7 +425,7 @@ const standardMaterialProps = [
['onUpdateShader', 'UpdateShaderCallback'],
['opacity', 'number'],
['opacityFadesSpecular', 'boolean'],
['opacityMap', 'Texture'],
['opacityMap', 'Texture|null'],
['opacityMapChannel', 'string'],
['opacityMapOffset', 'Vec2'],
['opacityMapRotation', 'number'],
Expand All @@ -441,7 +441,7 @@ const standardMaterialProps = [
['shininess', 'number'],
['specular', 'Color'],
['specularAntialias', 'boolean'],
['specularMap', 'Texture'],
['specularMap', 'Texture|null'],
['specularMapChannel', 'string'],
['specularMapOffset', 'Vec2'],
['specularMapRotation', 'number'],
Expand All @@ -450,7 +450,7 @@ const standardMaterialProps = [
['specularTint', 'boolean'],
['specularVertexColor', 'boolean'],
['specularVertexColorChannel', 'string'],
['sphereMap', 'Texture'],
['sphereMap', 'Texture|null'],
['twoSidedLighting', 'boolean'],
['useFog', 'boolean'],
['useGammaTonemap', 'boolean'],
Expand Down

0 comments on commit fc9dcf4

Please sign in to comment.