claygl-next
Advanced tools
Comparing version 2.0.0-alpha.22 to 2.0.0-alpha.23
@@ -85,4 +85,3 @@ import { setCanvasSize } from './core/util'; | ||
export { default as ForceField } from './particle/ForceField'; | ||
// Some useful types | ||
export { vec2, vec3, vec4, mat2, mat2d, mat3, mat4, quat } from './glmatrix'; | ||
//# sourceMappingURL=claygl.js.map |
@@ -69,2 +69,6 @@ import { keys } from '../core/util'; | ||
render(renderer, frameBuffer) { | ||
if (!renderer.getWidth() || !renderer.getHeight()) { | ||
// Not ready yet. | ||
return; | ||
} | ||
this._nodes.forEach((node) => { | ||
@@ -71,0 +75,0 @@ if (node instanceof GroupCompositeNode) { |
@@ -1,3 +0,2 @@ | ||
import { constants } from '../../claygl'; | ||
import { COLOR_ATTACHMENT0 } from '../../core/constants'; | ||
import { COLOR_ATTACHMENT0, HALF_FLOAT, UNSIGNED_BYTE, UNSIGNED_INT_24_8 } from '../../core/constants'; | ||
import { assign, isFunction, keys, optional } from '../../core/util'; | ||
@@ -118,5 +117,5 @@ import Texture2D from '../../Texture2D'; | ||
result.type && | ||
result.type !== constants.UNSIGNED_BYTE && | ||
result.type !== constants.HALF_FLOAT && | ||
result.type !== constants.UNSIGNED_INT_24_8) { | ||
result.type !== UNSIGNED_BYTE && | ||
result.type !== HALF_FLOAT && | ||
result.type !== UNSIGNED_INT_24_8) { | ||
delete result.type; | ||
@@ -123,0 +122,0 @@ } |
@@ -302,3 +302,9 @@ import Texture2D from '../Texture2D'; | ||
depthWritePass.material.set('depthTex', opts.depthMaskTexture); | ||
depthWritePass.render(renderer, frameBuffer); | ||
depthWritePass.renderQuad(renderer, frameBuffer, (gl) => { | ||
gl.depthMask(true); | ||
gl.clear(gl.DEPTH_BUFFER_BIT); | ||
gl.colorMask(false, false, false, false); | ||
}, (gl) => { | ||
gl.colorMask(true, true, true, true); | ||
}); | ||
} | ||
@@ -305,0 +311,0 @@ const renderHooks = { |
{ | ||
"name": "claygl-next", | ||
"version": "2.0.0-alpha.22", | ||
"version": "2.0.0-alpha.23", | ||
"description": "A 3D graphic library", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
7014332
105819