Code Monkey home page Code Monkey logo

Comments (7)

ignavus avatar ignavus commented on May 17, 2024 1

I am no shader expert by any mean, but I encountered this, as I far as I understand the texcoord1 is the texture of the lightmap that will be sent to the shader along with its normal texture in the case of having lightmap enabled
The problem is while texcoordis that texcoord1 is not defined in the appdata_t struct in the file "VertexLitConfigurable.cginc" so when trying to access it while having baked GI enabled it results in that error, when I added the following lines to the file after the definition of texcoord. it worked fine

struct appdata_t
{
    float4 vertex   : POSITION;
    #if _USEMAINTEX_ON || _USEEMISSIONTEX_ON
        float2 texcoord : TEXCOORD0;
    #endif

	#ifndef LIGHTMAP_OFF
		float2 texcoord1 : TEXCOORD1;
	#endif
    float3 normal : NORMAL;
};

Again I am no shader expert, and this may cause bugs I am not aware of

from mixedrealitytoolkit-unity.

NeerajW avatar NeerajW commented on May 17, 2024

@teichgraf thanks Rene for filing this. Do you have a proposal to fix this? Would you like to try to fix this?

from mixedrealitytoolkit-unity.

reneschulte avatar reneschulte commented on May 17, 2024

Is this being worked on or does it still make sense to investigate a fix proposal?

from mixedrealitytoolkit-unity.

NeerajW avatar NeerajW commented on May 17, 2024

@teichgraf do you have a proposed fix for this? Would you like to fix this?

from mixedrealitytoolkit-unity.

StephenHodgson avatar StephenHodgson commented on May 17, 2024

@teichgraf, there was some shader updates recently. Has those updates resolved this issue?

@ignavus Would you be willing to submit a PR with those fixes you've detailed?

from mixedrealitytoolkit-unity.

StephenHodgson avatar StephenHodgson commented on May 17, 2024

@dbastienMS did your recent updates fix this?

from mixedrealitytoolkit-unity.

StephenHodgson avatar StephenHodgson commented on May 17, 2024

New shaders have fixed this issue.

from mixedrealitytoolkit-unity.

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.