Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Add support for setting a custom fragment shader in RenderState #61

Merged
merged 1 commit into from
Mar 1, 2019

Conversation

MortimerGoro
Copy link
Contributor

No description provided.

Copy link
Contributor

@bluemarvin bluemarvin left a comment

Choose a reason for hiding this comment

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

I still wish I had time to finish the shader manager code I was working on.

@@ -26,6 +26,7 @@ class CreationContext {
void UpdateResourceGL();
void AddResourceGL(ResourceGL* aResource);
void AddUpdatable(Updatable* aUpdatable);
vrb::TextureCachePtr GetTextureCache() const;
Copy link
Contributor

Choose a reason for hiding this comment

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

What is this need for?

Copy link
Contributor

Choose a reason for hiding this comment

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

Okay, I see how it is used in MozillaReality/FirefoxReality#980
I wonder it would be better to add GetDefaultTexture() instead so that the TextureCache isn't made public? It's only in the RenderContext so it can be passed to the CreationContext.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@MortimerGoro MortimerGoro force-pushed the custom_fragment_shader branch from 5366c81 to d802130 Compare March 1, 2019 12:46
@MortimerGoro MortimerGoro merged commit 7300559 into master Mar 1, 2019
@cvan cvan deleted the custom_fragment_shader branch March 5, 2019 02:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants