Skip to content

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