Jump to content

[1.19.2] shader parsing related (bug? feature? what is it?) unexpected behaviour


cocicocyn

Recommended Posts

what happens when i load the uniform which contains more than 4 values: PostChain#parseUniformNode launches the "for" cycle which loops on an array from JSON (i assume it's "post" json) (without specifying the length of an array cause its iterable) and parses values. but these values get written into a array WITH A PREDEFINED LENGTH OF 4. so when i try to push my 4x4 matrix in the function just crashes and causes an exception. is this the intended behaviour? i don't really need this matrix but others might want to pass something big in and then troubleshoot for 3 days like i did. yeah.

Link to comment
Share on other sites

On 1/30/2023 at 9:11 AM, cocicocyn said:

what happens when i load the uniform which contains more than 4 values:

A uniform can only contain four values in two directions (meaning a 4x4 matrix at most).

On 1/30/2023 at 9:11 AM, cocicocyn said:

so when i try to push my 4x4 matrix in the function just crashes and causes an exception

I mean is the uniform you're pushing to a 4x4 matrix? Show the shader json and the uniform values you are trying to push.

Link to comment
Share on other sites

3 hours ago, ChampionAsh5357 said:

A uniform can only contain four values in two directions (meaning a 4x4 matrix at most).

I mean is the uniform you're pushing to a 4x4 matrix? Show the shader json and the uniform values you are trying to push.

oh my bad i am sorry 

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.