Created
June 18, 2022 23:11
-
-
Save flushpot1125/6e3b864ae7dc8bc513135602204efe1a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var glowLayer = new BABYLON.GlowLayer ("glow",scene); | |
glowLayer.customEmissiveColorSelector = function(mesh, subMesh, material, result) { | |
if (mesh.name === "shockWave") { | |
result.set(1, 0.63, 0.3, 1);// orange glow layer | |
} else { | |
result.set(0, 0, 0, 0);//no glow layer | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment