美术那边需要一个能在3dmax里用的支持diffuse纹理和顶点色的additive shader(不带光照). 以前没搞过这个,于是从3dmax自带的vertexcolor.fx,DiffuseBump.fx拼凑出了一个,如下: //-----------------------------DiffuseMapVertexcolorAdditive.fx // 3ds max effect file// Simple vertex color - work with the Vertex Pa…
如图所示,c#脚本控制shader颜色. public class ControlColor : MonoBehaviour { , , , ); public Material mat; public void ChangeColor() { mat.SetVector("_Diffuse", color); } } [CustomEditor(typeof(ControlColor))] public class Edit_ControlColor : Editor { Contr…
[译]Vulkan教程(13)图形管道基础之Shader模块 Shader modules Unlike earlier APIs, shader code in Vulkan has to be specified in a bytecode format as opposed to human-readable syntax like GLSL and HLSL. This bytecode format is called SPIR-V and is designed to be used…
http://www.doppioslash.com/ https://github.com/Apress/physically-based-shader-dev-for-unity-2017 Part I: Introduction to Shaders In Unity Chapter 1: How Shader Development Works (已看) Chapter 2: Your First Unity Shader (已看) Chapter 3: The Graphics Pip…