Jump to content

How to make a custom renderer


Avatar
 Share

Recommended Posts

I want to make a custom renderer that renders a container with alot of pixels and scales using a vertex shader while not scaling the pixels themselves.

 

I've searched on the internet to find a good example, and found only one; one that's not completely working well with filters: 

 

http://www.html5gamedevs.com/topic/15305-custom-container-custom-objectrenderer-and-shader-how-to-append-filters/

 

I would like to get some advice, or if possible a working example of a custom renderer. Thanks!

Link to comment
Share on other sites

A custom renderer and a custom shader are not the same thing. If you want examples of custom shaders (filters), check out the filter library:

 

https://github.com/GoodBoyDigital/pixi.js/tree/master/src/filters

 

If you are looking to write a custom renderer, that is a different story. One of the most simple examples of a custom renderer is the pixi-lights plugin:

 

https://github.com/pixijs/pixi-lights/tree/master/src/renderers

 

That has a custom SystemRenderer (WebGLDeferredRenderer) and a custom ObjectRenderer (LightRenderer).

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