Examples of ShaderResource


Examples of com.base.engine.rendering.resourceManagement.ShaderResource

  public Shader(String fileName)
  {
    this.m_fileName = fileName;

    ShaderResource oldResource = s_loadedShaders.get(fileName);

    if(oldResource != null)
    {
      m_resource = oldResource;
      m_resource.AddReference();
    }
    else
    {
      m_resource = new ShaderResource();

      String vertexShaderText = LoadShader(fileName + ".vs");
      String fragmentShaderText = LoadShader(fileName + ".fs");

      AddVertexShader(vertexShaderText);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.