Comments (1)
This will be part of the next release of Indigo, the work is being doing in this PR.
It will allow you to do this:
import indigo.*
import scala.scalajs.js.annotation._
@JSExportTopLevel("IndigoGame")
object ShaderGame extends IndigoShader:
val config: GameConfig = GameConfig.default
val assets: Set[AssetType] = Set()
val channel0: Option[AssetPath] = None
val channel1: Option[AssetPath] = None
val channel2: Option[AssetPath] = None
val channel3: Option[AssetPath] = None
val shader: Shader =
???
The shader can be any kind of shader that Indigo supports. In terms of Ultraviolet, that could be a Source
generated by UV, External
from a file a Scala-CLI script generated from UV, or a direct UltravioletShader
.
from ultraviolet.
Related Issues (20)
- Can we support `~==` for floating point comparison?
- Invalid comparisons HOT 1
- Upgrade to Scala.js 1.15.0 HOT 1
- Missing != operator
- Remove current usage of Indigo from the sandbox HOT 1
- Scala 2 libray TASTy compatibility HOT 7
- Upgrade to Scala ~3.3.3~ 3.4.1
- Upgrade to Scala.js 1.16.0
- Upgrade to Scala 3.5.0
- Possible bug: Using `!` in if statement predicate
- Add support for overloaded methods / functions
- Bug: Cellular noise in shaders project generates an error around if syntax HOT 3
- `-=` is an unsupported operator of `vec2` HOT 3
- Add support for assigning to swizzles
- Inline colour conversion syntax
- Possible missing `clamp` variations
- Bug Swizzles not working correctly with bracketed values
- Upgrade to Scala.js 1.14.0
- Add support for foreach?
- Nested inlines support?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ultraviolet.