Jump to content

Normal Mapping example is a bit green


Jerac
 Share

Recommended Posts

Hello!

 

New Pixi.js adept here. I apologise in advance if this topic was already posted somewhere, but I couldn't find anything causing green normal maps...

 

Since I am still not sure if I want to go full 3D or "2.5D" way with sprites + normal mapping + lights... I started experimenting with pixi and this example below, as it does what I want:

http://www.goodboydigital.com/pixijs/examples/20/

 

Unfortunately, I didn't go too far. In fact I eventually fallen back to the simpliest possible thing: copy entire source of the example, along with its assets, and fire it up in local webserver. This is what I got:

 

QbCShMG.png

 

Sooo, the shader - in fact - works. These yellow dots are "thumbtacks" from original texture and they seem processed when I move the cursor. The problem is that green circular light everywhere. Where it ends, I guess, is where the light radius ends.

 

I won't post any code because this is literally entire example file copypasted. I didn't even change paths just to be sure nothing was was interfering...

 

Any idea?

 

Sorry if this is something trivial and thanks in advance for support!

 

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