Peter Bay Bastian
bec6cdbb
New preview system and master node preview in inspector
7 年前
Peter Bay Bastian
a93f2736
Add change notifications for graph, used for managing previews better
7 年前
Peter Bay Bastian
a2353fbb
Fix property gathering in preview rendering
7 年前
Tim Cooper
9e0273b3
Fixing with help from peter
7 年前
Tim Cooper
0818f178
temp
7 年前
Tim Cooper
735c401b
Working: Properties window + new master node.
7 年前
Peter Bay Bastian
75826752
Add edge change notifications to IGraph
Move time-dependent preview tracking into PreviewSystem
7 年前
Peter Bay Bastian
609307fe
MaterialGraphPresenter now relies on change notifications rather than diffing
7 年前
Tim Cooper
8d5e6fd1
texture exposition working
7 年前
Tim Cooper
97cfbe75
Working remap node (wood wood) probably still needs a bunch of love. but something is working :)
7 年前
Peter Bay Bastian
65e94a0c
Add rate limiting for preview updates
7 年前
Peter Bay Bastian
33e9b11f
Log warning with source when shader has error
7 年前
Tim Cooper
f2cae710
Merge branch 'exposed-prop-subgraph'
# Conflicts:
# MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Inspector/GraphInspectorView.cs
7 年前
Peter Bay Bastian
a3385c0f
Undo/redo prototype
7 年前
damian
20646d1b
Removed MaterialNodePresenter.
7 年前
Peter Bay Bastian
3bcd87d8
Add progress bar during shader compilation
7 年前
Tim Cooper
209da78a
Merge remote-tracking branch 'origin/master' into tidyup
# Conflicts:
# MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Inspector/GraphInspectorView.cs
7 年前
Peter Bay Bastian
e39f99bb
Add "(i/total)" to shader compile progress
7 年前
Peter Bay Bastian
dac79163
Remove Match(GraphChange) utility function
7 年前
Peter Bay Bastian
b6a4d98d
Fix preview rendering bugs (causing re-use of previous texture and disapperance of checkerboard background) and persistence (remembers zoom etc. between assembly reloads, scene changes, even play mode!)
7 年前
Peter Bay Bastian
867e4ea2
Replace OnGraphChange with polling-based change tracking system
7 年前
Jens Holm
0f07c1c0
Add mesh selection for master node preveiw
7 年前
Peter Bay Bastian
3f1df674
PreviewSystem -> PreviewManager
7 年前
Jens Holm
401ef689
Set error texture filtermode to point
7 年前
Peter Bay Bastian
f95f8c27
BIG namespace refactor: UnityEngine -> UnityEditor, MaterialGraph -> ShaderGraph
No longer need assembly name in serialized data
7 年前
Peter Bay Bastian
c2d9f15c
Fix undo bug caused by property node -> concrete node conversion happening during undo
7 年前
Tim Cooper
00dbcd47
Clear shader errors before updating.
7 年前
Tim Cooper
42b8ed85
Fix lingering preview shaders with errors
7 年前
Peter Bay Bastian
95cfcc60
Move actual preview rendering into PreviewManager
7 年前
Peter Bay Bastian
7d0fabce
Pre-sort preview data into 2D and 3D previews to make loop simpler
7 年前
Peter Bay Bastian
82573de4
Remove special path for master nodes in PreviewManager
7 年前
Peter Bay Bastian
2fa06117
Implemented uber shader
7 年前
Peter Bay Bastian
2cf7a518
Fix bug caused by using LogWarningFormat instead of LogWarning
Put output id uniform first in MaterialPropertyBlock, so that it's hit early when setting it for every node
7 年前
Peter Bay Bastian
66129542
Log time elapsed when compiling shaders
7 年前
Peter Bay Bastian
14bcb1d7
Full-resolution preview in blackboard
7 年前
Tim Cooper
f559320c
'working' previews.
7 年前
Peter Bay Bastian
9aa25c1e
Change preview render resolution to 200*200, as that is the size of the preview at a 100% zoom
7 年前
Tim Cooper
1d641fec
For final shader generation use the master node.
7 年前
GitHub
81859b60
Merge pull request #92 from Unity-Technologies/pass-architecture
Pass architecture
7 年前
Tim Cooper
16640c42
Run code format tool
7 年前
Tim Cooper
e26f02bc
remove non needed logs
7 年前
Peter Bay Bastian
b4404ee6
Remove preview rate limitation button
7 年前
Peter Bay Bastian
da0d10c8
Massively decreased amount of allocations in preview rendering (~440 kB -> ~23 kB per frame)
7 年前
Peter Bay Bastian
944c3654
Dispose resources when an exception is thrown during Update or ChangeSelection, such that we don't run out of preview scenes and ruin previews for everyone
7 年前
Jens Holm
016cdba4
Remove mesh from preview render data and check for preview mesh in preview manager
7 年前
Jens Holm
cbc52afe
Add rotation to inspector mesh preview
7 年前
Jens Holm
682d177b
Add zoom/scale to preview mesh and refactor preview data into seperate class
7 年前
Tim Cooper
ae8e0962
starting to update nodes to new library.
7 年前
Tim Cooper
7a9a255f
More work on porting node library across to new shader library.
7 年前
Jens Holm
8a16933b
Minor refactor of preview mesh rotation and scale according to PR comments
7 年前
Jens Holm
8454398a
Center rotationin of preveiw mesh and fix serialization of preview mesh
7 年前
Jens Holm
a4e8458d
Remove zooming in inspector preview
7 年前
Jens Holm
923666b0
Improve applied scale to inspector preveiw
7 年前
Peter Bay Bastian
38e4110f
Move static methods out of AbstractMaterialNode
7 年前
Peter Bay Bastian
1a6d34eb
Output shader errors to console when uber shader has error
7 年前
Peter Bay Bastian
ea126eba
Update shader error message
7 年前
GitHub
eb5b5a85
Shader source mapping for node functions ( #137 )
7 年前
Tim Cooper
5c979fc8
Merge master
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 年前
Peter Bay Bastian
e1f95448
Various bug fixes
* Clean up master preview render data
* Add size check to IndexSet.Contains
7 年前
Tim Cooper
2888f1c2
-When we validate a subgraph node we also need to validate the subgraph (generates the concrete values).
-Allow promotion of vector types. v2->v3/v4 v3->v4. Rule is alpha channel gets 1, other channels get 0.
7 年前
Tim Cooper
64df08f0
[fix]Fix preview blending when you have alpha
7 年前
Martin Thorzen
c1697dc5
[FIX] fixes #166 Changed the Quad to use the build in resource from Unity
7 年前
Tim Cooper
e9757253
Feedback from PR
7 年前
GitHub
8e8beb43
Merge pull request #174 from Unity-Technologies/tim-bug-fixes
Misc bug fixes
7 年前
Martin Thorzen
a4d567f1
[FIX] Fixed a bug where the master preview didn't update properly after a node got deleted and then undo-ed.
7 年前
GitHub
da883fa2
Merge pull request #181 from Unity-Technologies/fix-master-preview-after-undo
[FIX] Fixed a bug where the master preview didn't update properly after a node got deleted and then undo-ed.
7 年前
Martin Thorzen
058f5c05
[FIX] Fixed an issue where openening up an empty shadergraph without any nodes caused an error.
7 年前
Peter Bay Bastian
a1cc908e
Fixes #198 - only dirty nodes were being used as starting point for PreviewMode propagation
7 年前
Jens Holm
625ddde1
Add zoom to master preview
7 年前
Tim Cooper
8dc99cbc
*Fefactor subshader / master node generation to be more uniform
*Add subshader generator as a 'real' thing, need to hook up UI now so that these can be added and removed.
7 年前
Peter Bay Bastian
c9173f20
Replace `onNodeModified` with methods for registering and deregistering to avoid direct access to the delegate.
7 年前
Peter Bay Bastian
e7218ad7
Remove unused variables and classes and rework how master preview resizing is handled
7 年前
Peter Bay Bastian
c1e7625e
Hide debug outputs behind a define
7 年前
Keijiro Takahashi
7aa1b896
Added null-checks to master preview.
7 年前
Peter Bay Bastian
00564880
Fix shader include paths, update gitignore, add meta files and replace UNITY_SHADERGRAPH_DEVMODE with an optional DebugOutput directory
7 年前
Peter Bay Bastian
a2bafb38
Fix float serialization in Constant Node to not be affected by system locale (was comma as decimal separator causing shader errors)
7 年前
Jens Holm
67b4a259
Allow SubGraphOutputNode to supply shader data to master preview view
7 年前
Peter Bay Bastian
e7f9893d
Rebuild previous branch (see comments)
Also:
- Add cull control to shadow and depth
- Add clip define (need to add clip to shadow/depth frag)
- Add HD pipeline tag to unlit subshader
7 年前
Tim Cooper
fafb59af
Run code formatter.
7 年前