Fixed an issue in TechniqueDef due to recent Geom and tesselation shader addition

experimental
Nehon 10 years ago
parent a73eb57f73
commit 40905061b5
  1. 10
      jme3-core/src/main/java/com/jme3/material/TechniqueDef.java

@ -238,11 +238,11 @@ public class TechniqueDef implements Savable {
* @param vertLanguage The vertex shader language
* @param fragLanguage The fragment shader language
*/
public void setShaderFile(String vertexShader, String fragmentShader, String vertLanguage, String fragLanguage){
this.shaderLanguage.put(Shader.ShaderType.Vertex,shaderLanguage.get(vertLanguage));
this.shaderName.put(Shader.ShaderType.Vertex,shaderName.get(vertexShader));
this.shaderLanguage.put(Shader.ShaderType.Fragment,shaderLanguage.get(fragLanguage));
this.shaderName.put(Shader.ShaderType.Fragment,shaderName.get(fragmentShader));
public void setShaderFile(String vertexShader, String fragmentShader, String vertLanguage, String fragLanguage) {
this.shaderLanguage.put(Shader.ShaderType.Vertex, vertLanguage);
this.shaderName.put(Shader.ShaderType.Vertex, vertexShader);
this.shaderLanguage.put(Shader.ShaderType.Fragment, fragLanguage);
this.shaderName.put(Shader.ShaderType.Fragment, fragmentShader);
Caps vertCap = Caps.valueOf(vertLanguage);
requiredCaps.add(vertCap);
Caps fragCap = Caps.valueOf(fragLanguage);

Loading…
Cancel
Save