Jump to content

Pass ShaderMaterial to a Custom PostProcess


royibernthal
 Share

Recommended Posts

I'm trying to provide a way online for shader coders to test their shaders on scenes from a game I'm working on.

Naturally CYOS will be used:

http://cyos.babylonjs.com/

 

1) I'm creating a ShaderMaterial that uses data stored in ShadersStore, like in here:

http://www.babylonjs-playground.com/#1IUU00#1

Is it possible to pass a ShaderMaterial to a custom PostProcess instead of a url?

https://doc.babylonjs.com/how_to/how_to_use_postprocesses#custom-postprocesses

 

2) My final goal is to create an underwater shader (water breaking light, bubbles, etc) in which the game's models are submerged - is PostProcess the right way to go?

 

3) Can CYOS be used to test a full screen post process?

Link to comment
Share on other sites

Deltakosh - Regarding your first point -

a. How do I pass both vertex and fragment shaders as a single URL? Does that URL point to a directory containing both shaders? If so, can blob still help?

b. Do I need to translate the string into a Buffer somehow?

 

NasimiAsl - It'd be great if you could pull this off :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...