Shuvit game master repo. http://shuvit.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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