Shuvit game master repo. http://shuvit.org
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

custom_shader_base.py 396B

12345678910111213141516171819202122
  1. import os
  2. import sys
  3. from bge import logic
  4. from . import custom_shader_utils as shader_utils
  5. path = os.path.dirname(__file__)
  6. sys.path.append(path)
  7. shader_lib = path + "/glsl/"
  8. class CustomShader:
  9. """Basic class for custom shader"""
  10. def __init__(self, material):
  11. self.material = material
  12. self.shader = material.shader
  13. def update(self):
  14. pass