Skip to content

Commit

Permalink
Snapshot build
Browse files Browse the repository at this point in the history
  • Loading branch information
xeolabs committed Mar 16, 2016
1 parent 668f3fa commit c32c2ef
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 7 additions & 3 deletions api/latest/scenejs.js
Original file line number Diff line number Diff line change
Expand Up @@ -18769,6 +18769,10 @@ var SceneJS_ProgramSourceFactory = new (function () {
add("fragColor.rgb *= mix(SCENEJS_uFragmentFresnelEdgeColor.rgb, SCENEJS_uFragmentFresnelCenterColor.rgb, fragmentFresnel);");
}

if (!depthTargeting) {
add("fragColor.rgb *= fragColor.a;");
}

add("gl_FragColor = fragColor;");

add("}");
Expand Down Expand Up @@ -19645,7 +19649,7 @@ SceneJS_ChunkFactory.createChunkType({
// Entering a transparency bin

gl.enable(gl.BLEND);
gl.blendFunc(gl.SRC_ALPHA, gl.ONE_MINUS_SRC_ALPHA);
gl.blendFunc(gl.ONE, gl.ONE_MINUS_SRC_ALPHA);
frameCtx.blendEnabled = true;

} else {
Expand Down Expand Up @@ -19711,7 +19715,7 @@ SceneJS_ChunkFactory.createChunkType({
// Enable blending for non-depth targets
if (frameCtx.blendEnabled) {
gl.enable(gl.BLEND);
gl.blendFunc(gl.SRC_ALPHA, gl.ONE_MINUS_SRC_ALPHA);
gl.blendFunc(gl.ONE, gl.ONE_MINUS_SRC_ALPHA);
}
}

Expand Down Expand Up @@ -20359,7 +20363,7 @@ SceneJS_ChunkFactory.createChunkType({
// Entering a transparency bin

gl.enable(gl.BLEND);
gl.blendFunc(gl.SRC_ALPHA, gl.ONE_MINUS_SRC_ALPHA);
gl.blendFunc(gl.ONE, gl.ONE_MINUS_SRC_ALPHA);
frameCtx.blendEnabled = true;

} else {
Expand Down
Loading

0 comments on commit c32c2ef

Please sign in to comment.