Skip to content

Add option to create shader from raw data #441

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
1 commit merged into from
Sep 18, 2018

Conversation

samr46
Copy link
Contributor

@samr46 samr46 commented Sep 10, 2018

This PR closes #430

New syntax (dxCreateShader):

element, string dxCreateShader ( string filepath / string raw_data [, float priority = 0, float maxDistance = 0, bool layered = false, string elementTypes = "world,vehicle,object,other" ] )

Like AlexTMjugador mentioned on Mantis it would be good to have option to generate shaders dynamically and load it without i/o.

It also supports #includes directives inside raw data. The base directory for includes - resource root directory.

@ArranTuna ArranTuna added the enhancement New feature or request label Sep 15, 2018
@ghost
Copy link

ghost commented Sep 16, 2018

Please kindly attach a test resource.

@ghost ghost merged commit 4d18fe3 into multitheftauto:master Sep 18, 2018
@patrikjuvonen patrikjuvonen added this to the 1.5.7 milestone Jan 5, 2019
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create shaders from raw data
3 participants