Giter Site home page Giter Site logo

Comments (7)

clayjohn avatar clayjohn commented on August 15, 2024 1

Could you please upload an MRP to make this easier for contributors to troubleshoot?

An MRP is a project that is as small as can be while still reproducing the bug you are reporting. We include the MRP in the bug reporting template as including one greatly increases the chance that a contributor will be able to reproduce the bug you reported and be able to fix it.

from godot.

Chaosus avatar Chaosus commented on August 15, 2024 1

Ah, seems like a similar problem was fixed for varying recently (#93205) - AO is built-in, and texture name should not overwrite it, I will fix this.

from godot.

mddm1 avatar mddm1 commented on August 15, 2024

I don't know what this means but this is the output error

E 9-> uniform sampler2D AO : hint_default_black;

All the shader bindings for the given set must be covered by the uniforms provided. Binding (0), set (3) was not provided.
drivers/vulkan/rendering_device_vulkan.cpp:5912 - Parameter "us" is null.

from godot.

mddm1 avatar mddm1 commented on August 15, 2024

@clayjohn I uploaded an MRP.

from godot.

Chaosus avatar Chaosus commented on August 15, 2024

Oh, the fix for this is not a trivial, because if we add a prefix to the parameter it will break a lot of user code such as expressions, uniform names, custom shaders etc. I think it's too dangerous and may not worth at all. @clayjohn what do you think?

from godot.

clayjohn avatar clayjohn commented on August 15, 2024

Oh, the fix for this is not a trivial, because if we add a prefix to the parameter it will break a lot of user code such as expressions, uniform names, custom shaders etc. I think it's too dangerous and may not worth at all. @clayjohn what do you think?

Can't we do what the textual shader compiler does and add the same prefix to all user variables (including those in expression nodes)? Or do we not do any parsing of expression nodes?

If we can't do something to make any name work, then we should add an error when a user tries to name an input the same as an existing built in.

from godot.

Chaosus avatar Chaosus commented on August 15, 2024

Can't we do what the textual shader compiler does and add the same prefix to all user variables (including those in expression nodes)? Or do we not do any parsing of expression nodes?

This is a necessary measure for input ports, scaling it to built-in parameters may be cumbersome... Anyway, it will break compatibility with the uniform names, so the user code in set_shader_parameter will need to be changed if the user accesses the shader through code.

If we can't do something to make any name work, then we should add an error when a user tries to name an input the same as an existing built in.

I guess that only thing we can do with this.

from godot.

Related Issues (20)

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.