sourcerose

Results 15 comments of sourcerose

Could this help? https://doc.babylonjs.com/advanced_topics/introToShaders/shaderCodeInBjs

Or maybe something like this? Pretty sure MC uses GLSL shader code so it would be pretty easy. https://github.com/saaratrix/glsl-babylonshader

This is also seems really useful: https://forum.unity.com/threads/export-glsl-shader.377982/

Ok, I was able to make a basic white shader. However, I'm not experienced enough to develop Useful Shader Code. ![image](https://user-images.githubusercontent.com/32988429/102573194-c6da3180-40a2-11eb-9157-96f33b9803d1.png)

I dont think you should try to use shaders to acomplish this. Something like https://doc.babylonjs.com/divingDeeper/lights/shadows will make it easier

As I said, I'm not very experienced with Shader Code. However, I can try

Ok, Here's what I got: ```javascript BABYLON.Effect.ShadersStore["customVertexShader"] = "precision highp float;\r\n" + "// Attributes\r\n" + "attribute vec3 position;\r\n" + "attribute vec2 uv;\r\n" + "// Uniforms\r\n" + "uniform mat4 worldViewProjection;\r\n" +...

Ok, I'll test it

I know this sounds dumb, but Im trying to use `SpotLight.range = x` to change the size of the light but it's not working. Any ideas??

Made a Question on the BBJS Fourm. https://forum.babylonjs.com/t/spotlight-range-is-not-working/16784 I think it might be a bug.