Skip to content

TSL: UniformNode Support Int/Uint#28667

Merged
sunag merged 2 commits intomrdoob:devfrom
RenaudRohlinger:utsubo/fix/uniform-type
Jun 17, 2024
Merged

TSL: UniformNode Support Int/Uint#28667
sunag merged 2 commits intomrdoob:devfrom
RenaudRohlinger:utsubo/fix/uniform-type

Conversation

@RenaudRohlinger
Copy link
Copy Markdown
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
} from '../Uniform.js';

class FloatNodeUniform extends FloatUniform {
class ScalarNodeUniform extends ScalarUniform {
Copy link
Copy Markdown
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
Copy Markdown
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

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