This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| struct vec3f {float x, y, z;}; | |
| struct vec4f {float x, y, z, w;}; | |
| struct mat44f {vec4f x, y, z, w;}; | |
| //============================================================================ | |
| // sphere_screen_extents | |
| //============================================================================ | |
| // Calculates the exact screen extents xyzw=[left, bottom, right, top] in | |
| // normalized screen coordinates [-1, 1] for a sphere in view space. For | |
| // performance, the projection matrix (v2p) is assumed to be setup so that |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env pwsh | |
| # Copyright (c) 2019 Milot Midita | |
| # | |
| # This program is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation, either version 3 of the License, or | |
| # (at your option) any later version. | |
| # | |
| # This program is distributed in the hope that it will be useful, but | |
| # WITHOUT ANY WARRANTY; without even the implied warranty of |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Shader "Custom/Geometry/Wireframe" | |
| { | |
| Properties | |
| { | |
| [PowerSlider(3.0)] | |
| _WireframeVal ("Wireframe width", Range(0., 0.5)) = 0.05 | |
| _FrontColor ("Front color", color) = (1., 1., 1., 1.) | |
| _BackColor ("Back color", color) = (1., 1., 1., 1.) | |
| [Toggle] _RemoveDiag("Remove diagonals?", Float) = 0. | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Written in 2017 by Tommy Ettinger ([email protected]) | |
| To the extent possible under law, the author has dedicated all copyright | |
| and related and neighboring rights to this software to the public domain | |
| worldwide. This software is distributed without any warranty. | |
| See <http://creativecommons.org/publicdomain/zero/1.0/>. */ | |
| #include <stdint.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # source : http://code.google.com/p/natvpn/source/browse/trunk/stun_server_list | |
| # A list of available STUN server. | |
| stun.l.google.com:19302 | |
| stun1.l.google.com:19302 | |
| stun2.l.google.com:19302 | |
| stun3.l.google.com:19302 | |
| stun4.l.google.com:19302 | |
| stun01.sipphone.com | |
| stun.ekiga.net |