text: /*
   * Copyright (c) 2017-2022 The Forge Interactive Inc.
   * 
   * This file is part of The-Forge
   * (see https://github.com/ConfettiFX/The-Forge).
   * 
   * Licensed to the Apache Software Foundation (ASF) under one
   * or more contributor license agreements.  See the NOTICE file
   * distributed with this work for additional information
   * regarding copyright ownership.  The ASF licenses this file
   * to you under the Apache License, Version 2.0 (the
   * "License"); you may not use this file except in compliance
   * with the License.  You may obtain a copy of the License at
   * 
   *   http://www.apache.org/licenses/LICENSE-2.0
   * 
   * Unless required by applicable law or agreed to in writing,
   * software distributed under the License is distributed on an
   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
   * KIND, either express or implied.  See the License for the
   * specific language governing permissions and limitations
   * under the License.
  */
  
  #ifndef RESOURCES_H
  #define RESOURCES_H
  
  RES(Tex2D(float4), uTex, UPDATE_FREQ_NONE, t0, binding = 1);
  RES(SamplerState, uSampler, UPDATE_FREQ_NONE, s1, binding = 2);
  
  PUSH_CONSTANT(PaniniRootConstants, b0)
  {
  	// horizontal field of view in degrees
  	DATA(float, FoVH, None);
  
  	// D parameter: Distance of projection's center from the Panini frame's origin.
  	//				i.e. controls horizontal compression.
  	//				D = 0.0f    : regular rectilinear projection
  	//				D = 1.0f    : Panini projection
  	//				D->Infinity : cylindrical orthographic projection
  	DATA(float, D, None);
  
  	// S parameter: A scalar that controls 'Hard Vertical Compression' of the projection.
  	//				Panini projection produces curved horizontal lines, which can feel
  	//				unnatural. Vertical compression attempts to straighten those curved lines.
  	//				S parameter works for FoVH < 180 degrees
  	//				S = 0.0f	: No compression
  	//				S = 1.0f	: Full straightening
  	DATA(float, S, None);
  
  	// After Panini projection, we'll need to upscale to fit to screen
  	DATA(float, Scale, None);
  };
  
  #endif