claygl-next
Advanced tools
Comparing version 2.0.0-alpha.20 to 2.0.0-alpha.21
@@ -228,10 +228,10 @@ // Light-pre pass deferred rendering | ||
// use scissor to make sure only clear the viewport | ||
gl.enable(gl.SCISSOR_TEST); | ||
gl.enable(constants.SCISSOR_TEST); | ||
gl.scissor(viewport.x * dpr, viewport.y * dpr, viewport.width * dpr, viewport.height * dpr); | ||
} | ||
gl.clearColor(clearColor[0], clearColor[1], clearColor[2], clearColor[3]); | ||
gl.clear(gl.COLOR_BUFFER_BIT); | ||
gl.enable(gl.BLEND); | ||
gl.clear(constants.COLOR_BUFFER_BIT | constants.DEPTH_BUFFER_BIT); | ||
gl.enable(constants.BLEND); | ||
if (viewport) { | ||
gl.disable(gl.SCISSOR_TEST); | ||
gl.disable(constants.SCISSOR_TEST); | ||
} | ||
@@ -238,0 +238,0 @@ } |
{ | ||
"name": "claygl-next", | ||
"version": "2.0.0-alpha.20", | ||
"version": "2.0.0-alpha.21", | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7010703