forked from lightning-js/renderer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Export symbols necessary for custom shaders/effects/textures...
- Add an example project that shows how to create/install custom shaders/effects/textures - Update README.md to show how to install fonts post core extensions
- Loading branch information
1 parent
b8a07de
commit 70f6834
Showing
18 changed files
with
1,188 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Custom Shaders / Effects / Textures | ||
|
||
For some examples on how to create custom shaders, effects and textures, see | ||
the (custom-shader-effect-texture)[./example-projects/custom-shader-effect-texture] | ||
example project. |
21 changes: 21 additions & 0 deletions
21
docs/example-projects/custom-shader-effect-texture/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<html> | ||
<head> | ||
<title>Renderer Browser Test</title> | ||
<style> | ||
body { | ||
margin: 0; | ||
padding: 0; | ||
overflow: hidden; | ||
} | ||
|
||
#app { | ||
display: inline-block; | ||
background: #3677e0; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="app"></div> | ||
<script type="module" src="./src/index.ts"></script> | ||
</body> | ||
</html> |
23 changes: 23 additions & 0 deletions
23
docs/example-projects/custom-shader-effect-texture/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"name": "renderer-custom-shader", | ||
"version": "1.0.0", | ||
"description": "", | ||
"main": "index.js", | ||
"type": "module", | ||
"scripts": { | ||
"start": "vite --open --host", | ||
"build": "tsc && vite build", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"keywords": [], | ||
"author": "", | ||
"license": "ISC", | ||
"dependencies": { | ||
"@lightningjs/renderer": "link:../../.." | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^20.12.12", | ||
"typescript": "^5.4.5", | ||
"vite": "^5.2.11" | ||
} | ||
} |
Oops, something went wrong.