Skip to content
Merged
Prev Previous commit
Next Next commit
Create shaders.md
Could use more links!
  • Loading branch information
machenmusik authored and ngokevin committed Oct 18, 2017
commit a387b47c7918081d32e6aa971cbab79ef8c66aaf
22 changes: 22 additions & 0 deletions docs/introduction/shaders.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
Copy link
Member

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?

Copy link
Contributor Author

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 material documentation?

Copy link
Member

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.

Copy link
Contributor Author

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.

Copy link
Member

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 🙄

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.