|
@@ -637,7 +637,7 @@ THREE.WebGLRenderer = function ( parameters ) {
|
|
|
|
|
|
_gl.bindBuffer( _gl.ARRAY_BUFFER, buffers.normal );
|
|
|
|
|
|
- if ( material.type !== 'MeshPhongMaterial' && material.type !== 'MeshStandardMaterial' && material.shading === THREE.FlatShading ) {
|
|
|
+ if ( material.type !== 'MeshPhongMaterial' && material.type !== 'MeshPhysicalMaterial' && material.shading === THREE.FlatShading ) {
|
|
|
|
|
|
for ( var i = 0, l = object.count * 3; i < l; i += 9 ) {
|
|
|
|
|
@@ -1248,7 +1248,11 @@ THREE.WebGLRenderer = function ( parameters ) {
|
|
|
|
|
|
} else if ( object instanceof THREE.Sprite ) {
|
|
|
|
|
|
- sprites.push( object );
|
|
|
+ if ( object.frustumCulled === false || _frustum.intersectsObject( object ) === true ) {
|
|
|
+
|
|
|
+ sprites.push( object );
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
} else if ( object instanceof THREE.LensFlare ) {
|
|
|
|
|
@@ -1573,7 +1577,7 @@ THREE.WebGLRenderer = function ( parameters ) {
|
|
|
|
|
|
if ( material instanceof THREE.ShaderMaterial ||
|
|
|
material instanceof THREE.MeshPhongMaterial ||
|
|
|
- material instanceof THREE.MeshStandardMaterial ||
|
|
|
+ material instanceof THREE.MeshPhysicalMaterial ||
|
|
|
material.envMap ) {
|
|
|
|
|
|
if ( p_uniforms.cameraPosition !== undefined ) {
|
|
@@ -1588,7 +1592,7 @@ THREE.WebGLRenderer = function ( parameters ) {
|
|
|
if ( material instanceof THREE.MeshPhongMaterial ||
|
|
|
material instanceof THREE.MeshLambertMaterial ||
|
|
|
material instanceof THREE.MeshBasicMaterial ||
|
|
|
- material instanceof THREE.MeshStandardMaterial ||
|
|
|
+ material instanceof THREE.MeshPhysicalMaterial ||
|
|
|
material instanceof THREE.ShaderMaterial ||
|
|
|
material.skinning ) {
|
|
|
|
|
@@ -1667,7 +1671,7 @@ THREE.WebGLRenderer = function ( parameters ) {
|
|
|
|
|
|
if ( material instanceof THREE.MeshPhongMaterial ||
|
|
|
material instanceof THREE.MeshLambertMaterial ||
|
|
|
- material instanceof THREE.MeshStandardMaterial ||
|
|
|
+ material instanceof THREE.MeshPhysicalMaterial ||
|
|
|
material.lights ) {
|
|
|
|
|
|
if ( _lightsNeedUpdate ) {
|
|
@@ -1694,7 +1698,7 @@ THREE.WebGLRenderer = function ( parameters ) {
|
|
|
if ( material instanceof THREE.MeshBasicMaterial ||
|
|
|
material instanceof THREE.MeshLambertMaterial ||
|
|
|
material instanceof THREE.MeshPhongMaterial ||
|
|
|
- material instanceof THREE.MeshStandardMaterial ) {
|
|
|
+ material instanceof THREE.MeshPhysicalMaterial ) {
|
|
|
|
|
|
refreshUniformsCommon( m_uniforms, material );
|
|
|
|
|
@@ -1719,7 +1723,7 @@ THREE.WebGLRenderer = function ( parameters ) {
|
|
|
|
|
|
refreshUniformsPhong( m_uniforms, material );
|
|
|
|
|
|
- } else if ( material instanceof THREE.MeshStandardMaterial ) {
|
|
|
+ } else if ( material instanceof THREE.MeshPhysicalMaterial ) {
|
|
|
|
|
|
refreshUniformsStandard( m_uniforms, material );
|
|
|
|