openframeworks / openframeworks/openFrameworks

programmable GL: custom lighting material

Open
#3,154 12 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

core feature section-3D
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.