> ## Documentation Index
> Fetch the complete documentation index at: https://prestiai.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Lighting Integration

> Match lighting for realistic scenes

## Understanding Light Matching

Consistent lighting makes AI-generated scenes believable. Mismatched lighting is the #1 giveaway of artificial imagery.

**Key principle**: Product shadows must match scene lighting direction.

## Using the Relight Tool

### Intensity Levels

<CardGroup cols={2}>
  <Card title="None" icon="circle">
    Keeps original product lighting unchanged
  </Card>

  <Card title="Low" icon="circle-half-stroke">
    Subtle adjustment for minor mismatches
  </Card>

  <Card title="Medium" icon="circle-three-quarters-stroke">
    Balanced relighting for most cases
  </Card>

  <Card title="High" icon="circle">
    Strong relighting for dramatic scenes
  </Card>
</CardGroup>

### Quick Workflow

1. Generate scene first
2. Check shadow direction
3. Apply Relight if needed
4. Regenerate for perfect match

## Common Lighting Scenarios

<Tabs>
  <Tab title="Window Light">
    **Original**: Studio lighting\
    **Scene**: Side window\
    **Fix**: Relight Medium-High
  </Tab>

  <Tab title="Overhead">
    **Original**: Front lighting\
    **Scene**: Ceiling lights\
    **Fix**: Relight Low-Medium
  </Tab>

  <Tab title="Sunset">
    **Original**: Neutral lighting\
    **Scene**: Golden hour\
    **Fix**: Relight High + warm prompt
  </Tab>
</Tabs>

## Color Temperature

### Quick Reference

| Scene Type     | Temperature | Relight Setting |
| -------------- | ----------- | --------------- |
| Morning light  | Cool        | Low + "morning" |
| Midday sun     | Neutral     | Medium          |
| Sunset/Evening | Warm        | High + "sunset" |
| Indoor lamps   | Warm        | Medium + "warm" |

## Troubleshooting

### Common Issues

* **Hard shadows**: Original has harsh lighting → Use diffused lighting keywords
* **Double shadows**: Conflicting light sources → Increase Relight intensity
* **No shadows**: Overlit original → Add "dramatic lighting" to prompt
* **Wrong direction**: Mismatch with scene → Always use Relight tool

### Pro Tips

* Match time of day in prompt with Relight level
* Use "soft lighting" for subtle shadows
* Specify light source: "window light", "overhead lighting"
* Generate multiple versions to compare

<Check>
  Remember: Relight tool only adjusts intensity, not direction. Plan your scene lighting accordingly.
</Check>
