inline float3 getDualParaboloidNormal(const float2& uv) {
    if(uv.x < 0.5f) {
        return float3(getNDC(uv, float2(0.5f, 1.f)), 1.f);
    }
    auto ndc = getNDC(uv - float2(0.5f, 0.f), float2(0.5f, 1.f));
    ndc.x = -ndc.x;
    return float3(ndc, -1.f);
}
Example #2
0
 void NDC::setMaxDepth(int maxDepth) {
     getNDC()._setMaxDepth(maxDepth);
 }
Example #3
0
 void NDC::push(const std::string& message) {
     getNDC()._push(message);
 }
Example #4
0
 std::string NDC::pop() {
     return getNDC()._pop();
 }
Example #5
0
 void NDC::inherit(NDC::ContextStack* stack) {
     getNDC()._inherit(stack);
 }
Example #6
0
 size_t NDC::getDepth() {
     return getNDC()._getDepth();
 }
Example #7
0
 const std::string& NDC::get() {
     return getNDC()._get();
 }
Example #8
0
 NDC::ContextStack* NDC::cloneStack() {
     return getNDC()._cloneStack();
 }
Example #9
0
 void NDC::clear() {
     getNDC()._clear();
 }