Skip to content

Commit da559b1

Browse files
committed
Update material.shading -> flatShading
shading is deprecated in three.js
1 parent 966825c commit da559b1

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

js/scripts/three-class-config.js

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,8 @@ module.exports = {
875875
linewidth: new Types.Float(1.0),
876876
morphNormals: new Types.Bool(false),
877877
morphTargets: new Types.Bool(false),
878-
shading: new Types.Enum('Shading', 'SmoothShading'),
878+
flatShading: new Types.Bool(false),
879+
//shading: new Types.Enum('Shading', 'SmoothShading'), // Deprecated in three
879880
skinning: new Types.Bool(false),
880881
vertexShader: new Types.String(''),
881882
wireframe: new Types.Bool(false),
@@ -1920,22 +1921,6 @@ module.exports = {
19201921
relativePath: './math/interpolants/QuaternionLinearInterpolant',
19211922
},
19221923
// TODO:
1923-
ShaderChunk: {
1924-
relativePath: './renderers/shaders/ShaderChunk',
1925-
},
1926-
// TODO:
1927-
ShaderLib: {
1928-
relativePath: './renderers/shaders/ShaderLib',
1929-
},
1930-
// TODO:
1931-
UniformsLib: {
1932-
relativePath: './renderers/shaders/UniformsLib',
1933-
},
1934-
// TODO:
1935-
UniformsUtils: {
1936-
relativePath: './renderers/shaders/UniformsUtils',
1937-
},
1938-
// TODO:
19391924
WebGLBufferRenderer: {
19401925
relativePath: './renderers/webgl/WebGLBufferRenderer',
19411926
},

0 commit comments

Comments
 (0)