Skip to content

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
} 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

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