def load_shaders(self): shaders = Shader.load(Shader.SL_GLSL, 'Shader/Planet/gas_giant_vertex.glsl', 'Shader/Planet/gas_giant_fragment.glsl', '', "Shader/DefaultShaders/Opaque/tesscontrol.glsl", "Shader/DefaultShaders/Opaque/tesseval.glsl") convertToPatches(self.node_path) self.node_path.set_shader(shaders, 51)
def load_shaders(self): shaders = Shader.load(Shader.SL_GLSL, 'Shader/Planet/surface_vertex.glsl', 'Shader/Planet/surface_fragment.glsl', '', "Shader/DefaultShaders/Opaque/tesscontrol.glsl", "Shader/DefaultShaders/Opaque/tesseval.glsl") convertToPatches(self.node_path) for m in self.sides: m.set_shader(shaders, 51)