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 "Unlit/CircleWithMask" | |
{ | |
Properties | |
{ | |
[PerRendererData] _MainTex ("Sprite Texture", 2D) = "white" {} | |
[Enum(Low,0,Medium,1,High,2)] _Quality ("Quality", Int) = 1 | |
} | |
SubShader | |
{ |
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
// | |
// UIView+CustomTimingFunction.h | |
// Instants | |
// | |
// Created by Christian Giordano on 16/10/2013. | |
// Copyright (c) 2013 Christian Giordano. All rights reserved. | |
// | |
#import <UIKit/UIKit.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
#import <ImageIO/ImageIO.h> | |
- (CGSize)sizeOfImageAtURL:(NSURL *)imageURL | |
{ | |
CGSize imageSize = CGSizeZero; | |
CGImageSourceRef imageSource = CGImageSourceCreateWithURL((CFURLRef)imageURL, NULL); | |
if (imageSource == NULL) return imageSize; | |
NSDictionary *options = @{(NSString *)kCGImageSourceShouldCache : @(NO)}; |