MCPcopy Create free account
hub / github.com/TheRealMJP/BakingLab / SetFocalLengthFromVFOV

Function SetFocalLengthFromVFOV

BakingLab/AppSettings.h:495–500  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

493 }
494
495 inline void SetFocalLengthFromVFOV(float FOV, float aspectRatio)
496 {
497 float fs = FilmSize.RawValue();
498 float verticalSize = fs / aspectRatio;
499 FocalLength.SetValue(2.0f * (verticalSize * 0.5f) / tanf(FOV * 0.5f));
500 }
501
502 inline float BokehPolygonAmount_()
503 {

Callers

nothing calls this directly

Calls 2

RawValueMethod · 0.80
SetValueMethod · 0.45

Tested by

no test coverage detected