Project

General

Profile

« Previous | Next » 

Revision d21254e8

Added by Leszek Koltunski over 7 years ago

Minimize differences from master branch.

View differences:

src/main/java/org/distorted/examples/feedback/FeedbackRenderer.java
105 105
      final InputStream vertStream = resources.openRawResource(org.distorted.library.R.raw.feedback_vertex_shader);
106 106
      final InputStream fragStream = resources.openRawResource(org.distorted.library.R.raw.feedback_fragment_shader);
107 107

  
108
      String vertHeader= Distorted.GLSL_VERSION;
109
      String fragHeader= Distorted.GLSL_VERSION;
108
      int glsl = 300;
109
      String header= "#version 300 es\n";
110 110
      String[] feedback = { "outValue" };
111 111

  
112 112
      try
113 113
        {
114
        mFeedbackProgram = new DistortedProgram(vertStream,fragStream, vertHeader, fragHeader, Distorted.GLSL, feedback );
114
        mFeedbackProgram = new DistortedProgram(vertStream,fragStream, header, header, glsl, feedback );
115 115
        }
116 116
      catch(Exception ex)
117 117
        {

Also available in: Unified diff