Tim Cooper
2a039635
[Shader Graph] Inital commit of modularised graph editor
12 年前
Tim Cooper
7d0465eb
[Shader Graph]Reformat the code to match conventions.
9 年前
Tim Cooper
c2f74843
Fix up setting preview properties to be pull based instead of push based (needs close review)
9 年前
Tim Cooper
53f95972
[shader graph]Refactor
-namespace UnityEditor.Graphs.Material
+namespace UnityEditor.MaterialGraph
9 年前
Tim Cooper
5a34322a
[Shader Graph] Previews rendering.
9 年前
Tim Cooper
4b137787
[shader graph]Reenable node UI. Not amazingly laid out yet, but it will get there.
9 年前
Tim Cooper
ff4d4704
[shader graph]fix layout.
9 年前
Tim Cooper
229ce4f5
[shader graph]Fix fix up defaults for node inputs. Moving towards typed inputs.
9 年前
Tim Cooper
60dd24e7
[shader graph]Update update some nodes to have multiple outputs.
9 年前
Tim Cooper
7f682001
[Shader Graph] Add channel types. This allows for visual errors if you try to promote vectors.
9 年前
Tim Cooper
6086c6d6
[shader graph]Integtate new non modifiable settings into shader graph. Fix setting properties generation pipe to be simpler.
9 年前
Tim Cooper
28d3f4cc
[Shader Graph]
Remove properties as they are not needed (will expose property setting per input node)
Add support for compact node UI view
Add Vector3 node
Update some example graphs
9 年前
Tim Cooper
abcc9002
[shader graph]
*Fix exposition of vector properties
*Change validation (graph wholeistic)
*Add view layer callback for when nodes change internally (need repaint)
*Add missing pool classes
9 年前
Tim Cooper
f93f8c6b
[shader graph]
*Allow drawn nodes to invaludate the model in OnGUI for the node (if for example the slots change)
*Lighting functions now determine what is available on master pixel node
9 年前
Tim Cooper
798bca64
[shader graph]
*Use GUID for node identifier instead of instance ID (Stable between runs)
*Cash hash of last generated preview shader string, do not regenerate if it's the same
*Serialize node preview shaders / materials / last generated shader hash (load time optimisation)
*Add node property: canDeleteNode returns false by default. True for pixel master node
*Rarrange popup menu
9 年前
Tim Cooper
51415775
[shader graph]Data refactor begins.
9 年前
Tim Cooper
af2e75ab
[shader graph]Data refactor 3
9 年前
Tim Cooper
34db823b
[shader graph]Data refactor 4 (working kind of now)
9 年前
Tim Cooper
a2b27b3c
[Shader graph]Working on getting previews again.
9 年前
Tim Cooper
418682b1
[Material Graph]Refactoring graph architecture.
9 年前
Tim Cooper
7a1ca7ce
[material graph]Compiles again.
9 年前
Tim Cooper
cf6628c6
[material graph]Fix serialization issues + start adding unit tests
9 年前
Tim Cooper
ed811c3c
[material graph]Tidy slot reference usages + update tests.
9 年前
Tim Cooper
404ea34c
[material graph]Moving namespaces / extract things to interface
9 年前
Tim Cooper
1b5c5494
[Material Graph]Refactoring drawing. Working general drawing.
9 年前
Tim Cooper
2645e25c
[Material Graph] split into runtime vs editor. Create UI delegation to handle node drawing nicely.
9 年前
Tim Cooper
a2d8ad62
Add drawing of custom node preview
Delegate drawing to a custom drawer class that is looked up via
attribute, it will search for most specific drawer first, then walk up
the inheritence chain.
9 年前
Tim Cooper
01366ee3
Custom UI for PixelShaderNode.
Add Slot priority + tests
Make shader generation static functions (they do not need to be members
9 年前
Tim Cooper
da4824f7
Readd all existing nodes.
Most nodes are now correct. Some still need UI work (texture).
Missing some of the 'art' nodes still.
9 年前
Tim Cooper
0dd596bf
[Material Graph] change nodes property to GetNodes<T> where you can get nodes of a given type
Remove redundent code
Set node when adding to graph (do not set owner manually)
Tidy up tests after changes.
9 年前
Tim Cooper
62377747
[Material graph] Working subGraph now. Copies function / properties etc.
9 年前
Tim Cooper
7ae021c6
[material graph]Convert slots from being a string into being an int that can be referenced from the node.
9 年前
Tim Cooper
0e9ee494
[Material Graph]Tidy + small Refactorings. Add more tests.
8 年前
Tim Cooper
cc192491
[Material Graph]Adding property node tests + pixel node tests + tidy API as I go (light functions specifically)
8 年前
Tim Cooper
553fedbf
[Format]Run code formatting
8 年前
Peter Bay Bastian
85173f43
Added UI for Vector{2,3,4}
8 年前
Peter Bay Bastian
234030ae
Corrected onModified calls for various nodes
8 年前
Matt Dean
5bed2efc
Menu Reorg: Input
8 年前
Peter Bay Bastian
7e160ce8
Run `hg format` on repository
7 年前
Tim Cooper
f6fa3513
Starting to extract properties.
7 年前
Tim Cooper
8a87c992
More refactoring.
7 年前
Tim Cooper
779d0288
[MatGraph]Use generated names for properties so that they do not conflict and are formatted properly.
7 年前
Peter Bay Bastian
ff8de4d3
New attribute-based system for node controls
7 年前
Tim Cooper
2c1b60e0
compiling
7 年前
Peter Bay Bastian
1125f7df
Common attribute control for floaty properties
7 年前
Tim Cooper
a5c9b0ce
Merge branch 'exposed-prop-subgraph'
# Conflicts:
# MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Nodes/Input/Matrix/Matrix2Node.cs
# MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Nodes/Input/Matrix/Matrix3Node.cs
# MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/SubGraph/AbstractSubGraphIONode.cs
# MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/SubGraph/AbstractSubGraphIONode.cs.meta
# MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/AbstractMaterialGraphEditWindow.cs
# MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Inspector/GraphInspectorView.cs
# MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Presenters/MaterialGraphPresenter.cs
# MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Presenters/Nodes/SubgraphIONodePresenter.cs
# MaterialGraphProject/Assets/UnityShaderEditor/Runtime/SubGraph/SubGraphOutputNode.cs
7 年前
Matt Dean
a3c5d049
Input Part 1
Input/Basic (WIP)
Input/Scene (WIP)
7 年前
Peter Bay Bastian
f95f8c27
BIG namespace refactor: UnityEngine -> UnityEditor, MaterialGraph -> ShaderGraph
No longer need assembly name in serialized data
7 年前
Matt Dean
abed850e
Merge master
And fix conflicts
7 年前
Peter Bay Bastian
418c94c0
Fix bug in Vector nodes
7 年前
Matt Dean
52b69b3c
Merge branch 'master' into node-validation
7 年前
Tim Cooper
92a955c3
Add converter from v1,v2,v3,v4,col nodes -> properties.
7 年前
Matt Dean
02c6b58d
Merge master
7 年前
Tim Cooper
16640c42
Run code format tool
7 年前
Peter Bay Bastian
1cf9ffde
Update node titles to use new array-based grouping `[Title("UV/Flipbook")]` -> `[Title("UV", "Flipbook")]`
7 年前
Peter Bay Bastian
da0d10c8
Massively decreased amount of allocations in preview rendering (~440 kB -> ~23 kB per frame)
7 年前
GitHub
09d669c8
Various refactorings and improvements ( #139 )
* Move previewMode to RenderData instead of ShaderData (still some to do here, as apparently there's still a RenderData _and a_ ShaderData per node, but the intention was to have a RenderData per node and then share ShaderData between those)
* Introduce a temporary identifier for nodes. The first part of this identifier is an index (`int`) which is assigned linearly. When a node is deleted, its identifier as added to a free list. Each identifier also contains a version (`int`), which is incremented when the identifier is re-used. This allows us to replace usage of Dictionary with List in a lot of places.
* Introduce IndexSet for efficiently storing and manipulating a list of indices (e.g. from temp IDs). Internally this stores a list of 32-bit integers and uses each bit to represent 1 index. The operations of `ISet<int>` are implemented for this type, although that interface does not exist in Unity. The operations are very fast and cac...
7 年前
Martin Thorzen
29920efb
[FIX] #159 Added a utility node method for converting float to shader value. To catch Infinity text string.
7 年前
Matt Dean
394320a1
Add documentation links for all nodes
7 年前
Martin Thorzen
9720e0dc
Added input fields to the vector nodes
7 年前
Tim Cooper
fafb59af
Run code formatter.
7 年前
Tim Cooper
893f84e9
Add warnings as errors to test projects + fix issues
7 年前