openframeworks / openframeworks/openFrameworks
programmable GL: custom lighting material
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 10.4k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 9
Description
ofMaterial implements the lighting models for the light types available in ofLight.
Actually to write a custom material shader using the data from ofLightsData() the only way is to replicate the code inside ofMaterial.
There isn't an API to easily do that. A use case for custom shader can be a bump map shader or an environment map shader.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading ofMaterial, ofLight, and the ofLightsData() API to understand how lighting data is currently exposed to shaders. Define an API that lets custom material shaders use the available light data without duplicating ofMaterial's lighting-model code. Done means custom bump-map or environment-map materials can access the relevant ofLight data through the new API.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- computer-graphics
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100