Skip to content

Conversation

@Remscar
Copy link
Contributor

@Remscar Remscar commented Dec 1, 2025

This PR adds a RenderOptions member to MeshComponent and applies the options onto the SceneObject.

They are used and operate the same way that ModelRenderer implements them.

This ultimately allows invisible MeshComponent's which cast shadows; before if you selected "Hide in Game" and had rendering to "Shadows Only", no shadows would be cast.

image image

@Remscar Remscar changed the title Renderer.RenderOptions available in MeshComponent RenderOptions available in MeshComponent Dec 1, 2025
@garrynewman
Copy link
Member

Something for @aylaylay to think about

@Remscar
Copy link
Contributor Author

Remscar commented Dec 5, 2025

@aylaylay My use case for this is I would like to create a shadow casting volume without having the actual mesh be visible to the player, similar to solid block light in hammer

@aylaylay
Copy link
Contributor

Sorry, I didn't get the notification. Yeah this seems ok.

@aylaylay aylaylay added the triaged triaged pull-requests are replicated on the internal sbox repo label Dec 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

triaged triaged pull-requests are replicated on the internal sbox repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants