2 Years Ago
Initial rebase of shader assets into master Fix things from shader assets rebase Recompile all vmat files Strip mod from d3dinclude Put certain shader of materials inside folders and strip extension Readd reflection data when compiling vfx Don't fixup filename of resources tagged RESOURCE_TYPE_NONE, allows for any filename to be set as a reference Reference shaders used as a dependency in compilematerial Fix some icon types not being generated Fix gameresource attributes not showing properly, fix warning on a material Remove LoadInternal, simplify and clean stuff Move compiled load of gameresource to gameresource Glue LoadKeyValues3File so we don't need to load the entire KV3 blob to read it's header, give support to loading KV3 in GameResource, cleanup LoadCompiledInternal, also add support for eventual custom loading of gameresource Load GameResources from addons when they are registered, previously they wouldn't be loaded properly Don't bother compiling shaders if we don't have the source Don't bitch that it's a binary blob when reading a KV3 to json, it writes the nuance that we want to the member Start exposing reflection data on shader resource Fix metadata being erased on shaders :S Preliminary reflection info for shader resources Bitch when we're trying to load a shader with legacy name Fix ShaderMetadata Rebuild all materials for good measure Make OpenInPrimaryTool a bool and return if we want to open in an external tool, make it have priority in Asset.OpenInEditor Add vfx to enginetools path Fix replacement shaders not being loaded correctly Append .vfx when loading compute shader since we treat them as direct files now Reference compiled shader rather than source on material dependency tree Fix partial shader loading requests on reload Fix default mode on toolswireframe's unified shader Serialize combos and which programs are used to kv3 Use new GetShaderFullPath instead of the deprecated GetAbsoluteShaderPath everywhere Much better organize shader resource fields Add ReadOnly stub attribute for DisplayInfo Fix loading game resource when we don't have a compiled version Pass each shader program as a field rather than a string when serializing to kv3, makes it better to organize it, also clean it up every time we compile Don't add saving to assets tagged readonly Update shaders Update materials again Don't add fields on empty stuff on serializing shaders, cleanup ReadOnly property for ShaderResource Don't warn that no tool was found since we return the value, make vscode have higher priority on opening text based assets Kill any simultaneous and append shaders from previous compiles, make warnings Yellow rather than Red Rebase fixes