Commit Graph

19 Commits

Author SHA1 Message Date
Ben Doherty
0d709b6074 Add a few new nodes to Tungsten (#326) 2018-10-15 12:02:05 -07:00
Philip Rideout
c6cef9ff9c NEW API: add RGBM flag to Texture.
This change will allow the skybox use a compressed texture format.

For now, the old internal format "RGBM" is still honored, but in a
forthcoming change we will replace the enum with UNUSED.
2018-10-08 11:33:06 -07:00
Ben Doherty
1360e8f558 Tungsten: Use blurry skybox for mesh preview (#301)
* Use blurry skybox texture for Tungsten preview

* Fix build error with GraphCompilerTest
2018-09-24 18:16:20 -07:00
Ben Doherty
596c94f6f0 Tungsten: normal mapping capabilities (#274)
* Ability to add code prior to prepareMaterial

* Add normal input on shading node

* Add constant float node

* Add multiply and subtract nodes

* Split math nodes out into MathNodes.kt
2018-09-20 11:09:15 -07:00
Ben Doherty
29e891a7b1 Tungsten: add IBL to the preview panel (#254)
* Move preview-specific files into new package

* Add venice_sunset resource

* Load IBL from resources

* Generate IBL at build time
2018-09-19 11:16:58 -07:00
Ben Doherty
2218c51306 Add color space option to texture chooser (#266) 2018-09-19 11:02:28 -07:00
Ben Doherty
cc77160cb4 Tungsten: fix a couple view-related bugs (#255)
* Fix bug when dragging non-selected node

* Fix bug when dragging nodes
2018-09-17 16:16:15 -06:00
Ben Doherty
3e6f1a2c39 Tungsten: add orbit cam manipulator (#244)
* Add orbit cam to Tungsten

* Add kotlin-math library

* Flip mouse wheel event sign if coming from a physical wheel
2018-09-13 17:30:33 -07:00
Ben Doherty
6ab36e9365 Fix, flip components not working (#239) 2018-09-12 17:29:40 -07:00
Ben Doherty
d0be29fb34 Tungsten: introduce texture sample node (#230)
* Tungsten: introduce texture sample node

* Add uv input to texture sample node

* Only flip components if specified in reverse order
2018-09-12 10:37:03 -07:00
Ben Doherty
069b4d1180 Tungsten: improvements to shader node (#216)
* Add StringValue and Choice

* Add editorFactory to nodes

* Update graph model when compiling

* Extract compileNode function

* Change inputs based on shadingModel

* Allow nodes to set shading model

* Fix float literals with dimension 1

* Adjust node height for slots

* Improvements to shader node

* Don't ever set a default value

* Add anisotropy and anisotropyDirection
2018-09-06 17:20:55 -07:00
Ben Doherty
7575bcee6e Tungsten: introduce custom view rendering (#205)
* Auto-convert MaterialGraphComponent to Kotlin

* Introduce new view rendering

* Add expressionMap to graph

* Show data width on slots

* Compile all nodes when compiling, even unconnected nodes

* Remove old views
2018-09-05 12:03:34 -07:00
Ben Doherty
bef9a9d2c4 Tungsten: introduce handling for varying dimensionality (#191)
* Introduce dimensions to Expression

* Rename to setExpressionForSlot and add redComponent function

* Add Expression helpers to aid with differing data widths

* Add Float2ConstantNode

* Single-line functions when possible
2018-08-31 18:16:57 -07:00
Ben Doherty
3282fc7984 Introduce property serialization (#175) 2018-08-28 16:01:59 -07:00
Ben Doherty
276e48fdeb Tungsten: add material parameters editing (#156) 2018-08-27 20:54:30 -07:00
Ben Doherty
95fb7ae0ab Tungsten: prep for material parameters editing (#141) 2018-08-25 10:25:51 -07:00
Ben Doherty
2874897dc1 Tungsten: use single-line functions where possible (#144) 2018-08-24 17:18:21 -07:00
Ben Doherty
6b435a0e8e Tungsten: rework model to be immutable (#127) 2018-08-23 16:35:07 -07:00
Romain Guy
b3d758f3b3 Initial commit 2018-08-03 10:38:22 -07:00