Applying different shaders to meshes

56 views Asked by At

I have meshes, which applied video texture. I want to apply different shaders on those meshes (for example, monochrome and sepia). Now I can see only one of them. In this example only second (2). If I comment (2), I will see (1). How I can see both?

  onRenderFcts.push(function(delta, now) {
    composer.render(delta); //(1)
    composerGray.render(delta); //(2)
  })

Project on github

Photo example:

link to photo

1

There are 1 answers

0
Alex Min On

I found a solution. Now I have been using standard postprocessing and shaders things. Without extention THREEx.js and strange for me blocks of code.

Result (image): see what I've done

Link to project: github