Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TSL: UniformNode Support Int/Uint #28667

Merged
merged 2 commits into from
Jun 17, 2024

Conversation

RenaudRohlinger
Copy link
Collaborator

@RenaudRohlinger RenaudRohlinger commented Jun 16, 2024

Description

Currently only float uniforms were supported. This PR adds int/uint formats.

Example usage:

uniform( count, 'uint' )
uniform( coords, 'ivec2' )

This contribution is funded by Utsubo

@RenaudRohlinger RenaudRohlinger added this to the r166 milestone Jun 16, 2024
ColorUniform, Matrix3Uniform, Matrix4Uniform
} from '../Uniform.js';

class FloatNodeUniform extends FloatUniform {
class ScalarNodeUniform extends ScalarUniform {
Copy link
Collaborator

@sunag sunag Jun 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe NumberNodeUniform? or 'NumericNode...'

Scalar is interesting if we are going to use boolean as well.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I renamed it to NumberNodeUniform, seems more familiar than numeric scalar or scalar

@sunag sunag merged commit 4d57598 into mrdoob:dev Jun 17, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants