Giter Site home page Giter Site logo

Comments (5)

JMLX42 avatar JMLX42 commented on July 20, 2024

Hello and thank you for your feedback,

I'm not sure I understand the issue: why is it not possible to use vsWorldNormal for you?

Thank you,

from minko-lighting.

sindney avatar sindney commented on July 20, 2024

For example, i created a water waving effect in vertex shader, and i need to recalculate vertex's normal, but i can't find the right way to update the vertex normal for enviromentmap's calculation. Because applyEnvironmentMapping() doesn't have a normal method, he directly use vsWorldNormal which is the default, which in this case i need to update them.

proxy:SFloat

vertex(){
// recalculate the normal xxx
proxy = new normal;
}

fragment(){
//calcaulate light is ok using the new normal
//then apply envmap shader
color = applyEnvironmentMapping(diffuse);
// so i can't change the normal you use in that funcion.
// and i think it would be better to provide a normal method, it's more flexible.

}

from minko-lighting.

JMLX42 avatar JMLX42 commented on July 20, 2024

ok I got it :)
I'll see what we can do, but providing a substitute normal as an argument sounds like a good idea.
The patch - if any - will be in minko's dev branch since minko-lighting is now deprecated:

http://answers.aerys.in/discussion/232/merging-minko-and-minko-picking#Item_1

from minko-lighting.

sindney avatar sindney commented on July 20, 2024

Oh, i see. We can't wait to meet minko's new version ;)
Good luck.

from minko-lighting.

JMLX42 avatar JMLX42 commented on July 20, 2024

tracked internally as feature #907

from minko-lighting.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.