Jump to content

help to to make pixlate shader on babylon.js


amo yeh
 Share

Recommended Posts

I am trying to come up the pixelated shader effect as seen on three.js 

 

the three.js version 

http://oos.moxiecode.com/js_webgl/c64_shader/

 

the three.js version shader code

https://github.com/chribbe/ThreeJS-GameboyStyleShader/blob/master/js/PixelateShader.js

 

and this is what I came up by using three.js , a pixlated 3d christmas scene. (I would really like to make similar one on babylon.js)

http://amoyeh.co/threejs/christmas2015/index.html

 

 

since I only understand a bit about shader, any help is appreciated

 

this is the version I came up so far.

http://www.babylonjs.com/cyos/acpr/#1HRCVZ

 

Thanks a lot~

Link to comment
Share on other sites

Wow ! Temechon thanks for the effect, it looks promising, will sure give it a try later.

 

by the way This is what I came up with

 

http://amoyeh.co/babylonjs/testPixel/2.loadBlender.html

 

applying it on example given from tutorial

http://amoyeh.co/babylonjs/testPixel/5.postProcess.html

 

the shader code

http://amoyeh.co/babylonjs/testPixel/pixelate.fragment.fx

 

To achieve perfect pixel art style, I don't know how to remove pixel that is not fully opaque. any enlightenments on this ?

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...