Rendering method, device and equipment
The embodiment of the invention discloses a method, device and equipment for achieving the refraction and reflection effect of glass and a storage medium, and the method comprises the steps that on the basis of a world space normal vector and a view angle direction vector of a to-be-rendered model,...
Gespeichert in:
Hauptverfasser: | , , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The embodiment of the invention discloses a method, device and equipment for achieving the refraction and reflection effect of glass and a storage medium, and the method comprises the steps that on the basis of a world space normal vector and a view angle direction vector of a to-be-rendered model, a refraction direction vector of the to-be-rendered model is determined; determining a reflection direction vector of the to-be-rendered model based on the world space normal vector and the world space vertex position; determining a refraction color from a refraction map based on the refraction direction vector, and determining a reflection color from a reflection map based on the reflection direction vector; based on an edge thickness parameter of the to-be-rendered model, fusing the reflection color and the refraction color to obtain a target color of the to-be-rendered model; based on the reflection color, the refraction color and the edge thickness parameter, determining target transparency of the to-be-rendere |
---|