LOL , I think this site needs way more simple tut. then it has XD. Any case I need some help with starting shaders- trying to make water with the shader in the Demo-Nature and using it in mine. I am really lost with their code and the use of mine and what I have seen on the site/forums, can anyone help me with a simple code base on how to use it on a block? I have used this code:
town1water = loader.loadModel("town/objects/water.egg")
town1water.reparentTo(render)
town1water.setPos(-11264.0,-320.0,25856.0)
town1water.setScale(0.25,0.25,0.25)
town1watershader = myShaderAttrib.setShader(Shader.load("town/shaders/water.sha"))
town1water.setShader(town1watershader)
To no luck, it says: NameError: global name ‘setShader’ is not defined
Most liky just doing it wrong XD but I dont fully get the tut/example just yet (mostly because they creat the the water rather then past it? I think-?)