Skip to content

Adding a random.glsl for use with glsl code injection#1569

Merged
einarf merged 5 commits intopythonarcade:developmentfrom
DragonMoffon:new-random-glsl
Feb 22, 2023
Merged

Adding a random.glsl for use with glsl code injection#1569
einarf merged 5 commits intopythonarcade:developmentfrom
DragonMoffon:new-random-glsl

Conversation

@DragonMoffon
Copy link
Collaborator

Adding a random.glsl for use with glsl code injection, which can be included using the common argument of ArcadeContext,load_program and Context.program.

Created so all who want to do stuff with random white noise inside shaders can. This noise is focused on generating visually good-looking noise, and there are no assurances on the mathematical quality.

(NOTE: it is pseudo-random noise).

DragonMoffon and others added 3 commits February 22, 2023 18:29
…ff with random white noise inside shaders can. (NOTE: it is pseudo-random noise). This noise is focused on generating visually good-looking noise and there are no assurances on the mathematical quality.
Copy link
Member

@pushfoo pushfoo left a comment

Choose a reason for hiding this comment

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

Aside from needing to move the docstring to the top of the file, this looks good.

@einarf einarf merged commit 60ea744 into pythonarcade:development Feb 22, 2023
@DragonMoffon DragonMoffon deleted the new-random-glsl branch June 8, 2023 12:47
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.

3 participants