Skip to content

Extend shader compiler define syntax to allow name=value instead of just valueless defines#364

Open
rms7326 wants to merge 2 commits intovsg-dev:masterfrom
rms7326:rms7326-shader-define-values
Open

Extend shader compiler define syntax to allow name=value instead of just valueless defines#364
rms7326 wants to merge 2 commits intovsg-dev:masterfrom
rms7326:rms7326-shader-define-values

Conversation

@rms7326
Copy link

@rms7326 rms7326 commented Jul 22, 2025

This pull request supports issue 1534 in VulkanSceneGraph and is a companion with VulkanSceneGraph Pull Request 1539.

The change is to the vsgclip example. It adds a command line option -n which takes an integer of either 1 or 2 indicating how many clips are desired. If not specified 1 is the default and the example behaves the same as before, clipping using a sphere in eye coordinates. If you specify 2 the example adds another clip on the X plane in world coordinates at X=0. The gl_ClipDistance array is dimensioned by the shader compiler define.

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.

1 participant