-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Better shader docs #3154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Better shader docs #3154
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
c024413
Update material.md
machenmusik 2f67e5a
Update material.md
machenmusik 47e22ec
Update material.md
machenmusik 6a370ca
Update material.md
machenmusik 8d0c325
Update material.md
machenmusik 948b2e2
Update material.md
machenmusik a387b47
Create shaders.md
machenmusik d6ac66a
Update shaders.md
machenmusik d0c268d
Update shaders.md
machenmusik b2459d1
Update shaders.md
machenmusik c3fc4d2
Update shaders.md
machenmusik a451ab4
Update material.md
machenmusik 072cda2
Update material.md
machenmusik 50966cd
Update material.md
machenmusik 392f796
Update material.md
machenmusik 9653524
remove separate shaders section per discussion on PR
machenmusik 948b3d1
aframe-shadertoy-gallery is gone
machenmusik 16ae6e5
add examples in header
machenmusik 27c6ddb
[docs] add don's displacement shader example to material docs
ngokevin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Create shaders.md
Could use more links!
- Loading branch information
commit a387b47c7918081d32e6aa971cbab79ef8c66aaf
There are no files selected for viewing
This file contains hidden or 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,22 @@ | ||
| --- | ||
| title: "Shaders" | ||
| type: introduction | ||
| layout: docs | ||
| parent_section: introduction | ||
| order: 8.775 | ||
| examples: [] | ||
| --- | ||
|
|
||
| [shaders]: ../../components/material | ||
| [shadertoy]: https://github.com/ngokevin/aframe-shadertoy-gallery | ||
| [shaderfrog]: https://github.com/chenzlabs/aframe-import-shaderfrog | ||
| Shaders are a powerful technique to implement visual effects. | ||
|
|
||
| A-Frame provides support for custom shaders as discussed [here][shaders]. | ||
|
|
||
| In addition, there are components developed by the A-Frame developer community | ||
| that allow the use of existing shaders from repositories such as [ShaderToy][shadertoy] and [ShaderFrog][shaderfrog]. | ||
|
|
||
| Note however that these shaders can be quite demanding in terms of | ||
| computational and graphics power, and some more complex shaders may not function | ||
| well on lower-performance devices such as smartphones. | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this part is too thin for a separate section. I think it's OK to be contained in the material section for now. Perhaps as the API and the ecosystem around shaders possibly matures, we move it out a separate section?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The non-duplicated part here that seems worth keeping is the reference to shader repositories like ShaderToy and/or ShaderFrog (there are probably others too) and pointers toward components that help with reusing those. Where would you suggest that appear in
materialdocumentation?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps when shaders are first introduced.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like your shaderfrog gallery went away, was that intentional? Changed reference to just the shaderfrog site.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, it was an empty repo 🙄